copyWith method
RadioCardTheme
copyWith({
- ValueGetter<
MouseCursor?> ? enabledCursor, - ValueGetter<
MouseCursor?> ? disabledCursor, - ValueGetter<
Color?> ? hoverColor, - ValueGetter<
Color?> ? color, - ValueGetter<
double?> ? borderWidth, - ValueGetter<
double?> ? selectedBorderWidth, - ValueGetter<
BorderRadiusGeometry?> ? borderRadius, - ValueGetter<
EdgeInsetsGeometry?> ? padding, - ValueGetter<
Color?> ? borderColor, - ValueGetter<
Color?> ? selectedBorderColor,
Creates a copy of this RadioCardTheme but with the given fields replaced with the new values.
Implementation
RadioCardTheme copyWith({
ValueGetter<MouseCursor?>? enabledCursor,
ValueGetter<MouseCursor?>? disabledCursor,
ValueGetter<Color?>? hoverColor,
ValueGetter<Color?>? color,
ValueGetter<double?>? borderWidth,
ValueGetter<double?>? selectedBorderWidth,
ValueGetter<BorderRadiusGeometry?>? borderRadius,
ValueGetter<EdgeInsetsGeometry?>? padding,
ValueGetter<Color?>? borderColor,
ValueGetter<Color?>? selectedBorderColor,
}) {
return RadioCardTheme(
enabledCursor:
enabledCursor != null ? enabledCursor() : this.enabledCursor,
disabledCursor:
disabledCursor != null ? disabledCursor() : this.disabledCursor,
hoverColor: hoverColor != null ? hoverColor() : this.hoverColor,
color: color != null ? color() : this.color,
borderWidth: borderWidth != null ? borderWidth() : this.borderWidth,
selectedBorderWidth: selectedBorderWidth != null
? selectedBorderWidth()
: this.selectedBorderWidth,
borderRadius: borderRadius != null ? borderRadius() : this.borderRadius,
padding: padding != null ? padding() : this.padding,
borderColor: borderColor != null ? borderColor() : this.borderColor,
selectedBorderColor: selectedBorderColor != null
? selectedBorderColor()
: this.selectedBorderColor,
);
}