copyWith method

  1. @useResult
FRadioStyle copyWith({
  1. Duration? animationDuration,
  2. Curve? curve,
  3. FLabelLayoutStyle? labelLayoutStyle,
  4. FRadioStateStyle? enabledStyle,
  5. FRadioStateStyle? disabledStyle,
  6. FRadioErrorStyle? errorStyle,
})

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

Implementation

@useResult
FRadioStyle copyWith({
  Duration? animationDuration,
  Curve? curve,
  FLabelLayoutStyle? labelLayoutStyle,
  FRadioStateStyle? enabledStyle,
  FRadioStateStyle? disabledStyle,
  FRadioErrorStyle? errorStyle,
}) =>
    FRadioStyle(
      animationDuration: animationDuration ?? this.animationDuration,
      curve: curve ?? this.curve,
      labelLayoutStyle: labelLayoutStyle ?? this.labelLayoutStyle,
      enabledStyle: enabledStyle ?? this.enabledStyle,
      disabledStyle: disabledStyle ?? this.disabledStyle,
      errorStyle: errorStyle ?? this.errorStyle,
    );