copyWith method

  1. @useResult
FTileStyle copyWith({
  1. FWidgetStateMap<Color?>? backgroundColor,
  2. EdgeInsetsGeometry? margin,
  3. FWidgetStateMap<BoxDecoration?>? decoration,
  4. FItemContentStyle contentStyle(
    1. FItemContentStyle style
    )?,
  5. FRawItemContentStyle rawItemContentStyle(
    1. FRawItemContentStyle style
    )?,
  6. FTappableStyle tappableStyle(
    1. FTappableStyle style
    )?,
  7. FFocusedOutlineStyle? focusedOutlineStyle,
})

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FTileStyle 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,
}) => FTileStyle(
  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,
);