copyWith method

  1. @override
FFormFieldStyle copyWith({
  1. Color? checkedColor,
  2. Color? uncheckedColor,
  3. Color? thumbColor,
  4. TextStyle? labelTextStyle,
  5. 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,
    );