copyWith method
- @useResult
- EdgeInsets? padding,
- double? headerSpacing,
- EdgeInsetsGeometry? headerPadding,
- TextStyleDelta? labelStyle,
- FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta> ? actionStyle, - double? childrenSpacing,
- EdgeInsetsGeometry? childrenPadding,
- FTappableStyleDelta? tappableStyle,
- FFocusedOutlineStyleDelta? focusedOutlineStyle,
- FSidebarItemStyleDelta? itemStyle,
Returns a copy of this FSidebarGroupStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FSidebarGroupStyle.padding - The padding.
- FSidebarGroupStyle.headerSpacing - The spacing between the label and action in the header.
- FSidebarGroupStyle.headerPadding - The padding around the header.
- FSidebarGroupStyle.labelStyle - The label's text style.
- FSidebarGroupStyle.actionStyle - The action's style.
- FSidebarGroupStyle.childrenSpacing - The spacing between children.
- FSidebarGroupStyle.childrenPadding - The padding around the children.
- FSidebarGroupStyle.tappableStyle - The tappable action's style.
- FSidebarGroupStyle.focusedOutlineStyle - The focused outline style.
- FSidebarGroupStyle.itemStyle - The item's style.
Implementation
@useResult
FSidebarGroupStyle copyWith({
EdgeInsets? padding,
double? headerSpacing,
EdgeInsetsGeometry? headerPadding,
TextStyleDelta? labelStyle,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta>? actionStyle,
double? childrenSpacing,
EdgeInsetsGeometry? childrenPadding,
FTappableStyleDelta? tappableStyle,
FFocusedOutlineStyleDelta? focusedOutlineStyle,
FSidebarItemStyleDelta? itemStyle,
}) => .new(
padding: padding ?? this.padding,
headerSpacing: headerSpacing ?? this.headerSpacing,
headerPadding: headerPadding ?? this.headerPadding,
labelStyle: labelStyle?.call(this.labelStyle) ?? this.labelStyle,
actionStyle: actionStyle?.call(this.actionStyle) ?? this.actionStyle,
childrenSpacing: childrenSpacing ?? this.childrenSpacing,
childrenPadding: childrenPadding ?? this.childrenPadding,
tappableStyle: tappableStyle?.call(this.tappableStyle) ?? this.tappableStyle,
focusedOutlineStyle: focusedOutlineStyle?.call(this.focusedOutlineStyle) ?? this.focusedOutlineStyle,
itemStyle: itemStyle?.call(this.itemStyle) ?? this.itemStyle,
);