copyWith method

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

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FItemGroupStyle copyWith({
  BoxDecoration? decoration,
  double? spacing,
  FWidgetStateMap<Color>? dividerColor,
  double? dividerWidth,
  FItemStyle Function(FItemStyle style)? 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,
);