copyWith method

  1. @useResult
FSidebarItemStyle copyWith({
  1. FWidgetStateMap<TextStyle>? textStyle,
  2. double? iconSpacing,
  3. FWidgetStateMap<IconThemeData>? iconStyle,
  4. double? collapsibleIconSpacing,
  5. FWidgetStateMap<IconThemeData>? collapsibleIconStyle,
  6. double? childrenSpacing,
  7. EdgeInsetsGeometry? childrenPadding,
  8. FWidgetStateMap<Color>? backgroundColor,
  9. EdgeInsetsGeometry? padding,
  10. BorderRadius? borderRadius,
  11. FTappableStyle tappableStyle(
    1. FTappableStyle style
    )?,
  12. FFocusedOutlineStyle focusedOutlineStyle(
    1. FFocusedOutlineStyle style
    )?,
  13. FSidebarItemMotion motion(
    1. FSidebarItemMotion motion
    )?,
})

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

Consider using the CLI to generate a style.

Parameters

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,
);