copyWith method
- @useResult
- FWidgetStateMap<Color?> ? backgroundColor,
- EdgeInsetsGeometry? margin,
- FWidgetStateMap<BoxDecoration?> ? decoration,
- FItemContentStyle contentStyle(- FItemContentStyle style
 
- FRawItemContentStyle rawItemContentStyle(- FRawItemContentStyle style
 
- FTappableStyle tappableStyle(- FTappableStyle style
 
- FFocusedOutlineStyle? focusedOutlineStyle,
Returns a copy of this FItemStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FItemStyle.backgroundColor - The item's background color.
- FItemStyle.margin - The margin around the item, including the decoration.
- FItemStyle.decoration - The item's decoration.
- FItemStyle.contentStyle - The default item content's style.
- FItemStyle.rawItemContentStyle - THe default raw item content's style.
- FItemStyle.tappableStyle - The tappable style.
- FItemStyle.focusedOutlineStyle - The focused outline style.
Implementation
@useResult
FItemStyle copyWith({
  FWidgetStateMap<Color?>? backgroundColor,
  EdgeInsetsGeometry? margin,
  FWidgetStateMap<BoxDecoration?>? decoration,
  FItemContentStyle Function(FItemContentStyle style)? contentStyle,
  FRawItemContentStyle Function(FRawItemContentStyle style)? rawItemContentStyle,
  FTappableStyle Function(FTappableStyle style)? tappableStyle,
  FFocusedOutlineStyle? focusedOutlineStyle,
}) => FItemStyle(
  backgroundColor: backgroundColor ?? this.backgroundColor,
  margin: margin ?? this.margin,
  decoration: decoration ?? this.decoration,
  contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
  rawItemContentStyle: rawItemContentStyle != null
      ? rawItemContentStyle(this.rawItemContentStyle)
      : this.rawItemContentStyle,
  tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
  focusedOutlineStyle: focusedOutlineStyle ?? this.focusedOutlineStyle,
);