copyWith method
- @useResult
- Duration? animationDuration,
- Curve? curve,
- FTappableStyle? tappableStyle,
- FFocusedOutlineStyle? focusedOutlineStyle,
- double? size,
- FWidgetStateMap<
IconThemeData> ? iconStyle, - FWidgetStateMap<
BoxDecoration> ? decoration, - EdgeInsetsGeometry? labelPadding,
- EdgeInsetsGeometry? descriptionPadding,
- EdgeInsetsGeometry? errorPadding,
- EdgeInsetsGeometry? childPadding,
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - FWidgetStateMap<
TextStyle> ? descriptionTextStyle, - TextStyle? errorTextStyle,
inherited
Returns a copy of this FCheckboxStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
Implementation
@useResult
FCheckboxStyle copyWith({
Duration? animationDuration,
Curve? curve,
FTappableStyle? tappableStyle,
FFocusedOutlineStyle? focusedOutlineStyle,
double? size,
FWidgetStateMap<IconThemeData>? iconStyle,
FWidgetStateMap<BoxDecoration>? decoration,
EdgeInsetsGeometry? labelPadding,
EdgeInsetsGeometry? descriptionPadding,
EdgeInsetsGeometry? errorPadding,
EdgeInsetsGeometry? childPadding,
FWidgetStateMap<TextStyle>? labelTextStyle,
FWidgetStateMap<TextStyle>? descriptionTextStyle,
TextStyle? errorTextStyle,
}) => FCheckboxStyle(
animationDuration: animationDuration ?? this.animationDuration,
curve: curve ?? this.curve,
tappableStyle: tappableStyle ?? this.tappableStyle,
focusedOutlineStyle: focusedOutlineStyle ?? this.focusedOutlineStyle,
size: size ?? this.size,
iconStyle: iconStyle ?? this.iconStyle,
decoration: decoration ?? this.decoration,
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,
);