copyWith method

  1. @useResult
FRadioStyle copyWith({
  1. FTappableStyle tappableStyle(
    1. FTappableStyle style
    )?,
  2. FFocusedOutlineStyle focusedOutlineStyle(
    1. FFocusedOutlineStyle style
    )?,
  3. FWidgetStateMap<Color>? borderColor,
  4. FWidgetStateMap<Color>? backgroundColor,
  5. FWidgetStateMap<Color>? indicatorColor,
  6. FRadioMotion motion(
    1. FRadioMotion motion
    )?,
  7. EdgeInsetsGeometry? labelPadding,
  8. EdgeInsetsGeometry? descriptionPadding,
  9. EdgeInsetsGeometry? errorPadding,
  10. EdgeInsetsGeometry? childPadding,
  11. FWidgetStateMap<TextStyle>? labelTextStyle,
  12. FWidgetStateMap<TextStyle>? descriptionTextStyle,
  13. TextStyle? errorTextStyle,
})

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FRadioStyle copyWith({
  FTappableStyle Function(FTappableStyle style)? tappableStyle,
  FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
  FWidgetStateMap<Color>? borderColor,
  FWidgetStateMap<Color>? backgroundColor,
  FWidgetStateMap<Color>? indicatorColor,
  FRadioMotion Function(FRadioMotion motion)? motion,
  EdgeInsetsGeometry? labelPadding,
  EdgeInsetsGeometry? descriptionPadding,
  EdgeInsetsGeometry? errorPadding,
  EdgeInsetsGeometry? childPadding,
  FWidgetStateMap<TextStyle>? labelTextStyle,
  FWidgetStateMap<TextStyle>? descriptionTextStyle,
  TextStyle? errorTextStyle,
}) => FRadioStyle(
  tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
  focusedOutlineStyle: focusedOutlineStyle != null
      ? focusedOutlineStyle(this.focusedOutlineStyle)
      : this.focusedOutlineStyle,
  borderColor: borderColor ?? this.borderColor,
  backgroundColor: backgroundColor ?? this.backgroundColor,
  indicatorColor: indicatorColor ?? this.indicatorColor,
  motion: motion != null ? motion(this.motion) : this.motion,
  labelPadding: labelPadding ?? this.labelPadding,
  descriptionPadding: descriptionPadding ?? this.descriptionPadding,
  errorPadding: errorPadding ?? this.errorPadding,
  childPadding: childPadding ?? this.childPadding,
  labelTextStyle: labelTextStyle ?? this.labelTextStyle,
  descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
  errorTextStyle: errorTextStyle ?? this.errorTextStyle,
);