copyWith method

  1. @useResult
FItemGroupStyle copyWith({
  1. BoxDecoration? decoration,
  2. double? spacing,
  3. FWidgetStateMap<Color>? dividerColor,
  4. double? dividerWidth,
  5. FItemStyle itemStyle(
    1. FItemStyle
    )?,
})

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

decoration

The group's decoration.

spacing

The vertical spacing at the top and bottom of each group. Defaults to 4.

dividerColor

The divider's style.

Supported states:

dividerWidth

The divider's width.

itemStyle

The item's style.

Implementation

@useResult
FItemGroupStyle copyWith({
  BoxDecoration? decoration,
  double? spacing,
  FWidgetStateMap<Color>? dividerColor,
  double? dividerWidth,
  FItemStyle Function(FItemStyle)? itemStyle,
}) => FItemGroupStyle(
  decoration: decoration ?? this.decoration,
  spacing: spacing ?? this.spacing,
  dividerColor: dividerColor ?? this.dividerColor,
  dividerWidth: dividerWidth ?? this.dividerWidth,
  itemStyle: itemStyle != null ? itemStyle(this.itemStyle) : this.itemStyle,
);