copyWith method

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

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

Implementation

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