copyWith method

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

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

Implementation

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