copyWith method
- @useResult
- BoxDecoration? decoration,
- double? spacing,
- FWidgetStateMap<
Color> ? dividerColor, - double? dividerWidth,
- FItemStyle itemStyle(
- FItemStyle style
Returns a copy of this FItemGroupStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FItemGroupStyle.decoration - The group's decoration.
- FItemGroupStyle.spacing - The vertical spacing at the top and bottom of each group.
- FItemGroupStyle.dividerColor - The divider's style.
- FItemGroupStyle.dividerWidth - The divider's width.
- FItemGroupStyle.itemStyle - The item's style.
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,
);