copyWith method

  1. @useResult
FCheckboxStyle copyWith({
  1. FTappableStyle tappableStyle(
    1. FTappableStyle style
    )?,
  2. FFocusedOutlineStyle focusedOutlineStyle(
    1. FFocusedOutlineStyle style
    )?,
  3. double? size,
  4. FWidgetStateMap<IconThemeData>? iconStyle,
  5. FWidgetStateMap<BoxDecoration>? decoration,
  6. FCheckboxMotion motion(
    1. FCheckboxMotion 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 FCheckboxStyle with the given properties replaced.

Consider using the CLI to generate a style.

Parameters

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,
);