copyWith method

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

See customizing widget styles.

Parameters

Implementation

@useResult
FCheckboxStyle copyWith({
  FTappableStyleDelta? tappableStyle,
  FFocusedOutlineStyleDelta? focusedOutlineStyle,
  double? size,
  FVariantsDelta<FFormFieldVariantConstraint, FFormFieldVariant, IconThemeData, IconThemeDataDelta>? iconStyle,
  FVariantsDelta<FCheckboxVariantConstraint, FCheckboxVariant, Decoration, DecorationDelta>? decoration,
  FCheckboxMotionDelta? motion,
  FLabelStyleDelta? leadingLabelStyle,
  FLabelStyleDelta? trailingLabelStyle,
}) => .new(
  tappableStyle: tappableStyle?.call(this.tappableStyle) ?? this.tappableStyle,
  focusedOutlineStyle: focusedOutlineStyle?.call(this.focusedOutlineStyle) ?? this.focusedOutlineStyle,
  size: size ?? this.size,
  iconStyle: iconStyle?.call(this.iconStyle) ?? this.iconStyle,
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  motion: motion?.call(this.motion) ?? this.motion,
  leadingLabelStyle: leadingLabelStyle?.call(this.leadingLabelStyle) ?? this.leadingLabelStyle,
  trailingLabelStyle: trailingLabelStyle?.call(this.trailingLabelStyle) ?? this.trailingLabelStyle,
);