copyWith method
- @useResult
- EdgeInsets? padding,
- double? headerSpacing,
- EdgeInsetsGeometry? headerPadding,
- TextStyle? labelStyle,
- FWidgetStateMap<
IconThemeData> ? actionStyle, - double? childrenSpacing,
- EdgeInsetsGeometry? childrenPadding,
- FTappableStyle tappableStyle(
- FTappableStyle style
- FFocusedOutlineStyle focusedOutlineStyle(
- FFocusedOutlineStyle style
- FSidebarItemStyle itemStyle(
- FSidebarItemStyle style
Returns a copy of this FSidebarGroupStyle with the given properties replaced.
Consider using the CLI to generate a style.
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,
TextStyle? labelStyle,
FWidgetStateMap<IconThemeData>? actionStyle,
double? childrenSpacing,
EdgeInsetsGeometry? childrenPadding,
FTappableStyle Function(FTappableStyle style)? tappableStyle,
FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
FSidebarItemStyle Function(FSidebarItemStyle style)? itemStyle,
}) => FSidebarGroupStyle(
padding: padding ?? this.padding,
headerSpacing: headerSpacing ?? this.headerSpacing,
headerPadding: headerPadding ?? this.headerPadding,
labelStyle: labelStyle ?? this.labelStyle,
actionStyle: actionStyle ?? this.actionStyle,
childrenSpacing: childrenSpacing ?? this.childrenSpacing,
childrenPadding: childrenPadding ?? this.childrenPadding,
tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
focusedOutlineStyle: focusedOutlineStyle != null
? focusedOutlineStyle(this.focusedOutlineStyle)
: this.focusedOutlineStyle,
itemStyle: itemStyle != null ? itemStyle(this.itemStyle) : this.itemStyle,
);