copyWith method

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

See customizing widget styles.

Parameters

Implementation

@useResult
FTileStyle copyWith({
  FVariantsValueDelta<FTappableVariantConstraint, FTappableVariant, Color?, Delta>? backgroundColor,
  EdgeInsetsGeometry? margin,
  FVariantsDelta<FTappableVariantConstraint, FTappableVariant, BoxDecoration, BoxDecorationDelta>? decoration,
  FItemContentStyleDelta? contentStyle,
  FRawItemContentStyleDelta? rawItemContentStyle,
  FTappableStyleDelta? tappableStyle,
  FFocusedOutlineStyle? Function()? focusedOutlineStyle,
}) => .new(
  backgroundColor: backgroundColor?.call(this.backgroundColor) ?? this.backgroundColor,
  margin: margin ?? this.margin,
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  contentStyle: contentStyle?.call(this.contentStyle) ?? this.contentStyle,
  rawItemContentStyle: rawItemContentStyle?.call(this.rawItemContentStyle) ?? this.rawItemContentStyle,
  tappableStyle: tappableStyle?.call(this.tappableStyle) ?? this.tappableStyle,
  focusedOutlineStyle: focusedOutlineStyle == null ? this.focusedOutlineStyle : focusedOutlineStyle(),
);