copyWith method

  1. @useResult
FSidebarGroupStyle copyWith({
  1. EdgeInsets? padding,
  2. double? headerSpacing,
  3. EdgeInsetsGeometry? headerPadding,
  4. TextStyle? labelStyle,
  5. FWidgetStateMap<IconThemeData>? actionStyle,
  6. double? childrenSpacing,
  7. EdgeInsetsGeometry? childrenPadding,
  8. FTappableStyle tappableStyle(
    1. FTappableStyle style
    )?,
  9. FFocusedOutlineStyle focusedOutlineStyle(
    1. FFocusedOutlineStyle style
    )?,
  10. FSidebarItemStyle itemStyle(
    1. FSidebarItemStyle style
    )?,
})

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

Consider using the CLI to generate a style.

Parameters

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