copyWith method
- @useResult
- FWidgetStateMap<
TextStyle> ? textStyle, - double? iconSpacing,
- FWidgetStateMap<
IconThemeData> ? iconStyle, - double? collapsibleIconSpacing,
- FWidgetStateMap<
IconThemeData> ? collapsibleIconStyle, - double? childrenSpacing,
- EdgeInsetsGeometry? childrenPadding,
- FWidgetStateMap<
Color> ? backgroundColor, - EdgeInsetsGeometry? padding,
- BorderRadius? borderRadius,
- FTappableStyle tappableStyle(
- FTappableStyle style
- FFocusedOutlineStyle focusedOutlineStyle(
- FFocusedOutlineStyle style
- FSidebarItemMotion motion(
- FSidebarItemMotion motion
Returns a copy of this FSidebarItemStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FSidebarItemStyle.textStyle - The label's text style.
- FSidebarItemStyle.iconSpacing - The spacing between the icon and label.
- FSidebarItemStyle.iconStyle - The icon's style.
- FSidebarItemStyle.collapsibleIconSpacing - The spacing between the label and collapsible widget.
- FSidebarItemStyle.collapsibleIconStyle - The collapsible icon's style.
- FSidebarItemStyle.childrenSpacing - The spacing between child items.
- FSidebarItemStyle.childrenPadding - The padding around the children container.
- FSidebarItemStyle.backgroundColor - The background color.
- FSidebarItemStyle.padding - The padding around the content.
- FSidebarItemStyle.borderRadius - The item's border radius.
- FSidebarItemStyle.tappableStyle - The tappable's style.
- FSidebarItemStyle.focusedOutlineStyle - The focused outline style.
- FSidebarItemStyle.motion - The motion-related properties.
Implementation
@useResult
FSidebarItemStyle copyWith({
FWidgetStateMap<TextStyle>? textStyle,
double? iconSpacing,
FWidgetStateMap<IconThemeData>? iconStyle,
double? collapsibleIconSpacing,
FWidgetStateMap<IconThemeData>? collapsibleIconStyle,
double? childrenSpacing,
EdgeInsetsGeometry? childrenPadding,
FWidgetStateMap<Color>? backgroundColor,
EdgeInsetsGeometry? padding,
BorderRadius? borderRadius,
FTappableStyle Function(FTappableStyle style)? tappableStyle,
FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
FSidebarItemMotion Function(FSidebarItemMotion motion)? motion,
}) => FSidebarItemStyle(
textStyle: textStyle ?? this.textStyle,
iconSpacing: iconSpacing ?? this.iconSpacing,
iconStyle: iconStyle ?? this.iconStyle,
collapsibleIconSpacing: collapsibleIconSpacing ?? this.collapsibleIconSpacing,
collapsibleIconStyle: collapsibleIconStyle ?? this.collapsibleIconStyle,
childrenSpacing: childrenSpacing ?? this.childrenSpacing,
childrenPadding: childrenPadding ?? this.childrenPadding,
backgroundColor: backgroundColor ?? this.backgroundColor,
padding: padding ?? this.padding,
borderRadius: borderRadius ?? this.borderRadius,
tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
focusedOutlineStyle: focusedOutlineStyle != null
? focusedOutlineStyle(this.focusedOutlineStyle)
: this.focusedOutlineStyle,
motion: motion != null ? motion(this.motion) : this.motion,
);