copyWith method
- @useResult
- FTappableStyleDelta? tappableStyle,
- FFocusedOutlineStyleDelta? focusedOutlineStyle,
- double? size,
- FVariantsDelta<
FFormFieldVariantConstraint, FFormFieldVariant, IconThemeData, IconThemeDataDelta> ? iconStyle, - FVariantsDelta<
FCheckboxVariantConstraint, FCheckboxVariant, Decoration, DecorationDelta> ? decoration, - FCheckboxMotionDelta? motion,
- FLabelStyleDelta? leadingLabelStyle,
- FLabelStyleDelta? trailingLabelStyle,
Returns a copy of this FCheckboxStyle with the given properties replaced.
See customizing widget styles.
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.leadingLabelStyle - The label style when FCheckbox.leadingLabel is true.
- FCheckboxStyle.trailingLabelStyle - The label style when FCheckbox.leadingLabel is false (the default).
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,
);