copyWith method
- @useResult
- ShapeBorder? shape()?,
- FVariantsValueDelta<
FTappableVariantConstraint, FTappableVariant, Color?, Delta> ? backgroundColor, - EdgeInsetsGeometryDelta? padding,
- FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, Decoration, DecorationDelta> ? contentDecoration, - FItemContentStyleDelta? contentStyle,
- FRawItemContentStyleDelta? rawContentStyle,
- FTappableStyleDelta? tappableStyle,
- FFocusedOutlineStyle? focusedOutlineStyle()?,
Returns a copy of this FTileStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FTileStyle.shape - The item's shape, only applied when outside an FItemGroup or other similar groups.
- FTileStyle.backgroundColor - The item's background color, enclosing the
paddingand content, and belowcontentDecoration. - FTileStyle.padding - The padding around the
contentDecoration. - FTileStyle.contentDecoration - The content's decoration, enclosed within
paddingandshape, and abovebackgroundColor. - FTileStyle.contentStyle - The content's style.
- FTileStyle.rawContentStyle - The raw content's style.
- FTileStyle.tappableStyle - The tappable style.
- FTileStyle.focusedOutlineStyle - The focused outline style.
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(),
);