copyWith method

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

See customizing widget styles.

Parameters

Implementation

@useResult
FTileStyle copyWith({
  ShapeBorder? Function()? shape,
  FVariantsValueDelta<FTappableVariantConstraint, FTappableVariant, Color?, Delta>? backgroundColor,
  EdgeInsetsGeometryDelta? padding,
  FVariantsDelta<FTappableVariantConstraint, FTappableVariant, Decoration, DecorationDelta>? contentDecoration,
  FItemContentStyleDelta? contentStyle,
  FRawItemContentStyleDelta? rawContentStyle,
  FTappableStyleDelta? tappableStyle,
  FFocusedOutlineStyle? Function()? focusedOutlineStyle,
}) => .new(
  shape: shape == null ? this.shape : shape(),
  backgroundColor: backgroundColor?.call(this.backgroundColor) ?? this.backgroundColor,
  padding: padding?.call(this.padding) ?? this.padding,
  contentDecoration: contentDecoration?.call(this.contentDecoration) ?? this.contentDecoration,
  contentStyle: contentStyle?.call(this.contentStyle) ?? this.contentStyle,
  rawContentStyle: rawContentStyle?.call(this.rawContentStyle) ?? this.rawContentStyle,
  tappableStyle: tappableStyle?.call(this.tappableStyle) ?? this.tappableStyle,
  focusedOutlineStyle: focusedOutlineStyle == null ? this.focusedOutlineStyle : focusedOutlineStyle(),
);