copyWith method
FFormFieldStyle
copyWith({
- Color? checkedColor,
- Color? uncheckedColor,
- Color? thumbColor,
- TextStyle? labelTextStyle,
- TextStyle? descriptionTextStyle,
override
Returns a copy of this FFormFieldStyle with the given properties replaced.
Implementation
@override
FFormFieldStyle copyWith({
Color? checkedColor,
Color? uncheckedColor,
Color? thumbColor,
TextStyle? labelTextStyle,
TextStyle? descriptionTextStyle,
}) =>
FSwitchStateStyle(
checkedColor: checkedColor ?? this.checkedColor,
uncheckedColor: uncheckedColor ?? this.uncheckedColor,
thumbColor: thumbColor ?? this.thumbColor,
labelTextStyle: labelTextStyle ?? this.labelTextStyle,
descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
);