copyWith method
- WidgetStateProperty<
MouseCursor?> ? mouseCursor, - WidgetStateProperty<
Color?> ? fillColor, - WidgetStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- MaterialTapTargetSize? materialTapTargetSize,
- VisualDensity? visualDensity,
- WidgetStateProperty<
Color?> ? backgroundColor, - BorderSide? side,
- WidgetStateProperty<
double?> ? innerRadius,
Creates a copy of this object but with the given fields replaced with the new values.
Implementation
RadioThemeData copyWith({
WidgetStateProperty<MouseCursor?>? mouseCursor,
WidgetStateProperty<Color?>? fillColor,
WidgetStateProperty<Color?>? overlayColor,
double? splashRadius,
MaterialTapTargetSize? materialTapTargetSize,
VisualDensity? visualDensity,
WidgetStateProperty<Color?>? backgroundColor,
BorderSide? side,
WidgetStateProperty<double?>? innerRadius,
}) {
return RadioThemeData(
mouseCursor: mouseCursor ?? this.mouseCursor,
fillColor: fillColor ?? this.fillColor,
overlayColor: overlayColor ?? this.overlayColor,
splashRadius: splashRadius ?? this.splashRadius,
materialTapTargetSize: materialTapTargetSize ?? this.materialTapTargetSize,
visualDensity: visualDensity ?? this.visualDensity,
backgroundColor: backgroundColor ?? this.backgroundColor,
side: side ?? this.side,
innerRadius: innerRadius ?? this.innerRadius,
);
}