copyWith method
- @useResult
- FTappableStyle tappableStyle(
- FTappableStyle style
- FFocusedOutlineStyle focusedOutlineStyle(
- FFocusedOutlineStyle style
- FWidgetStateMap<
Color> ? borderColor, - FWidgetStateMap<
Color> ? backgroundColor, - FWidgetStateMap<
Color> ? indicatorColor, - FRadioMotion motion(
- FRadioMotion motion
- EdgeInsetsGeometry? labelPadding,
- EdgeInsetsGeometry? descriptionPadding,
- EdgeInsetsGeometry? errorPadding,
- EdgeInsetsGeometry? childPadding,
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - FWidgetStateMap<
TextStyle> ? descriptionTextStyle, - TextStyle? errorTextStyle,
Returns a copy of this FRadioStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FRadioStyle.tappableStyle - The tappable style.
- FRadioStyle.focusedOutlineStyle - The focused outline style.
- FRadioStyle.borderColor - The FRadio's border color.
- FRadioStyle.backgroundColor - The FRadio's background color.
- FRadioStyle.indicatorColor - The FRadio's indicator color.
- FRadioStyle.motion - The motion-related properties.
- FRadioStyle.labelPadding - The label's padding.
- FRadioStyle.descriptionPadding - The description's padding.
- FRadioStyle.errorPadding - The error's padding.
- FRadioStyle.childPadding - The child's padding.
- FRadioStyle.labelTextStyle - The label's text style.
- FRadioStyle.descriptionTextStyle - The description's text style.
- FRadioStyle.errorTextStyle - The error's text style.
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,
);