copyWith method
- @useResult
- FTappableStyle tappableStyle(
- FTappableStyle style
- FFocusedOutlineStyle focusedOutlineStyle(
- FFocusedOutlineStyle style
- double? size,
- FWidgetStateMap<
IconThemeData> ? iconStyle, - FWidgetStateMap<
BoxDecoration> ? decoration, - FCheckboxMotion motion(
- FCheckboxMotion motion
- EdgeInsetsGeometry? labelPadding,
- EdgeInsetsGeometry? descriptionPadding,
- EdgeInsetsGeometry? errorPadding,
- EdgeInsetsGeometry? childPadding,
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - FWidgetStateMap<
TextStyle> ? descriptionTextStyle, - TextStyle? errorTextStyle,
Returns a copy of this FCheckboxStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FCheckboxStyle.tappableStyle - The tappable style.
- FCheckboxStyle.focusedOutlineStyle - The focused outline style.
- FCheckboxStyle.size - The checkboxes size.
- FCheckboxStyle.iconStyle - The icon style.
- FCheckboxStyle.decoration - The box decoration.
- FCheckboxStyle.motion - The motion-related properties.
- FCheckboxStyle.labelPadding - The label's padding.
- FCheckboxStyle.descriptionPadding - The description's padding.
- FCheckboxStyle.errorPadding - The error's padding.
- FCheckboxStyle.childPadding - The child's padding.
- FCheckboxStyle.labelTextStyle - The label's text style.
- FCheckboxStyle.descriptionTextStyle - The description's text style.
- FCheckboxStyle.errorTextStyle - The error's text style.
Implementation
@useResult
FCheckboxStyle copyWith({
FTappableStyle Function(FTappableStyle style)? tappableStyle,
FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
double? size,
FWidgetStateMap<IconThemeData>? iconStyle,
FWidgetStateMap<BoxDecoration>? decoration,
FCheckboxMotion Function(FCheckboxMotion motion)? motion,
EdgeInsetsGeometry? labelPadding,
EdgeInsetsGeometry? descriptionPadding,
EdgeInsetsGeometry? errorPadding,
EdgeInsetsGeometry? childPadding,
FWidgetStateMap<TextStyle>? labelTextStyle,
FWidgetStateMap<TextStyle>? descriptionTextStyle,
TextStyle? errorTextStyle,
}) => FCheckboxStyle(
tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
focusedOutlineStyle: focusedOutlineStyle != null
? focusedOutlineStyle(this.focusedOutlineStyle)
: this.focusedOutlineStyle,
size: size ?? this.size,
iconStyle: iconStyle ?? this.iconStyle,
decoration: decoration ?? this.decoration,
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,
);