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