copyWith method

  1. @override
  2. @useResult
FRadioErrorStyle copyWith({
  1. Color? borderColor,
  2. Color? selectedColor,
  3. Color? backgroundColor,
  4. TextStyle? labelTextStyle,
  5. TextStyle? descriptionTextStyle,
  6. TextStyle? errorTextStyle,
})
override

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

Implementation

@override
@useResult
FRadioErrorStyle copyWith({
  Color? borderColor,
  Color? selectedColor,
  Color? backgroundColor,
  TextStyle? labelTextStyle,
  TextStyle? descriptionTextStyle,
  TextStyle? errorTextStyle,
}) =>
    FRadioErrorStyle(
      borderColor: borderColor ?? this.borderColor,
      selectedColor: selectedColor ?? this.selectedColor,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      labelTextStyle: labelTextStyle ?? this.labelTextStyle,
      descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
      errorTextStyle: errorTextStyle ?? this.errorTextStyle,
    );