copyWith method

  1. @override
  2. @useResult
FCheckboxStateStyle copyWith({
  1. Color? borderColor,
  2. Color? iconColor,
  3. Color? checkedBackgroundColor,
  4. Color? uncheckedBackgroundColor,
  5. TextStyle? labelTextStyle,
  6. TextStyle? descriptionTextStyle,
})
override

Returns a copy of this FCheckboxStateStyle with the given properties replaced.

Implementation

@override
@useResult
FCheckboxStateStyle copyWith({
  Color? borderColor,
  Color? iconColor,
  Color? checkedBackgroundColor,
  Color? uncheckedBackgroundColor,
  TextStyle? labelTextStyle,
  TextStyle? descriptionTextStyle,
}) =>
    FCheckboxStateStyle(
      borderColor: borderColor ?? this.borderColor,
      iconColor: iconColor ?? this.iconColor,
      checkedBackgroundColor: checkedBackgroundColor ?? this.checkedBackgroundColor,
      uncheckedBackgroundColor: uncheckedBackgroundColor ?? this.uncheckedBackgroundColor,
      labelTextStyle: labelTextStyle ?? this.labelTextStyle,
      descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
    );