copyWith method
- @useResult
- FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta> ? prefixIconStyle, - FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta> ? childTextStyle, - EdgeInsetsGeometryDelta? padding,
- bool? childSoftWrap,
- TextOverflow? childOverflow,
- int? childMaxLines()?,
- TextHeightBehavior? childTextHeightBehavior,
- double? prefixIconSpacing,
Returns a copy of this FRawTileContentStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FRawTileContentStyle.prefixIconStyle - The prefix icon style.
- FRawTileContentStyle.childTextStyle - The child's text style.
- FRawTileContentStyle.padding - The content's padding.
- FRawTileContentStyle.childSoftWrap - Whether the child wraps at soft line breaks.
- FRawTileContentStyle.childOverflow - The child's overflow.
- FRawTileContentStyle.childMaxLines - The child's max lines.
- FRawTileContentStyle.childTextHeightBehavior - The child's text height behavior.
- FRawTileContentStyle.prefixIconSpacing - The horizontal spacing between the prefix icon and child.
Implementation
@useResult
FRawTileContentStyle copyWith({
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta>? prefixIconStyle,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta>? childTextStyle,
EdgeInsetsGeometryDelta? padding,
bool? childSoftWrap,
TextOverflow? childOverflow,
int? Function()? childMaxLines,
TextHeightBehavior? childTextHeightBehavior,
double? prefixIconSpacing,
}) => .new(
prefixIconStyle: prefixIconStyle?.call(this.prefixIconStyle) ?? this.prefixIconStyle,
childTextStyle: childTextStyle?.call(this.childTextStyle) ?? this.childTextStyle,
padding: padding?.call(this.padding) ?? this.padding,
childSoftWrap: childSoftWrap ?? this.childSoftWrap,
childOverflow: childOverflow ?? this.childOverflow,
childMaxLines: childMaxLines == null ? this.childMaxLines : childMaxLines(),
childTextHeightBehavior: childTextHeightBehavior ?? this.childTextHeightBehavior,
prefixIconSpacing: prefixIconSpacing ?? this.prefixIconSpacing,
);