copyWith method
- @useResult
- FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta> ? prefixIconStyle, - FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta> ? titleTextStyle, - FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta> ? subtitleTextStyle, - FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta> ? detailsTextStyle, - FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta> ? suffixIconStyle, - EdgeInsetsGeometryDelta? suffixedPadding,
- EdgeInsetsGeometryDelta? unsuffixedPadding,
- bool? titleSoftWrap,
- TextOverflow? titleOverflow,
- int? titleMaxLines()?,
- TextHeightBehavior? titleTextHeightBehavior,
- bool? subtitleSoftWrap,
- TextOverflow? subtitleOverflow,
- int? subtitleMaxLines()?,
- TextHeightBehavior? subtitleTextHeightBehavior,
- double? prefixIconSpacing,
- double? titleSpacing,
- double? middleSpacing,
- double? suffixIconSpacing,
Returns a copy of this FTileContentStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FTileContentStyle.prefixIconStyle - The prefix icon style.
- FTileContentStyle.titleTextStyle - The title's text style.
- FTileContentStyle.subtitleTextStyle - The subtitle's text style.
- FTileContentStyle.detailsTextStyle - The details text style.
- FTileContentStyle.suffixIconStyle - The suffix icon style.
- FTileContentStyle.suffixedPadding - The content's padding when a suffix is present.
- FTileContentStyle.unsuffixedPadding - The content's padding when no suffix is present.
- FTileContentStyle.titleSoftWrap - Whether the title wraps at soft line breaks.
- FTileContentStyle.titleOverflow - The title's overflow.
- FTileContentStyle.titleMaxLines - The title's max lines.
- FTileContentStyle.titleTextHeightBehavior - The title's text height behavior.
- FTileContentStyle.subtitleSoftWrap - Whether the subtitle wraps at soft line breaks.
- FTileContentStyle.subtitleOverflow - The subtitle's overflow.
- FTileContentStyle.subtitleMaxLines - The subtitle's max lines.
- FTileContentStyle.subtitleTextHeightBehavior - The subtitle's text height behavior.
- FTileContentStyle.prefixIconSpacing - The horizontal spacing between the prefix icon and title and the subtitle.
- FTileContentStyle.titleSpacing - The vertical spacing between the title and the subtitle.
- FTileContentStyle.middleSpacing - The minimum horizontal spacing between the title, subtitle, combined, and the details.
- FTileContentStyle.suffixIconSpacing - The horizontal spacing between the details and suffix icon.
Implementation
@useResult
FTileContentStyle copyWith({
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta>? prefixIconStyle,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta>? titleTextStyle,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta>? subtitleTextStyle,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta>? detailsTextStyle,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta>? suffixIconStyle,
EdgeInsetsGeometryDelta? suffixedPadding,
EdgeInsetsGeometryDelta? unsuffixedPadding,
bool? titleSoftWrap,
TextOverflow? titleOverflow,
int? Function()? titleMaxLines,
TextHeightBehavior? titleTextHeightBehavior,
bool? subtitleSoftWrap,
TextOverflow? subtitleOverflow,
int? Function()? subtitleMaxLines,
TextHeightBehavior? subtitleTextHeightBehavior,
double? prefixIconSpacing,
double? titleSpacing,
double? middleSpacing,
double? suffixIconSpacing,
}) => .new(
prefixIconStyle: prefixIconStyle?.call(this.prefixIconStyle) ?? this.prefixIconStyle,
titleTextStyle: titleTextStyle?.call(this.titleTextStyle) ?? this.titleTextStyle,
subtitleTextStyle: subtitleTextStyle?.call(this.subtitleTextStyle) ?? this.subtitleTextStyle,
detailsTextStyle: detailsTextStyle?.call(this.detailsTextStyle) ?? this.detailsTextStyle,
suffixIconStyle: suffixIconStyle?.call(this.suffixIconStyle) ?? this.suffixIconStyle,
suffixedPadding: suffixedPadding?.call(this.suffixedPadding) ?? this.suffixedPadding,
unsuffixedPadding: unsuffixedPadding?.call(this.unsuffixedPadding) ?? this.unsuffixedPadding,
titleSoftWrap: titleSoftWrap ?? this.titleSoftWrap,
titleOverflow: titleOverflow ?? this.titleOverflow,
titleMaxLines: titleMaxLines == null ? this.titleMaxLines : titleMaxLines(),
titleTextHeightBehavior: titleTextHeightBehavior ?? this.titleTextHeightBehavior,
subtitleSoftWrap: subtitleSoftWrap ?? this.subtitleSoftWrap,
subtitleOverflow: subtitleOverflow ?? this.subtitleOverflow,
subtitleMaxLines: subtitleMaxLines == null ? this.subtitleMaxLines : subtitleMaxLines(),
subtitleTextHeightBehavior: subtitleTextHeightBehavior ?? this.subtitleTextHeightBehavior,
prefixIconSpacing: prefixIconSpacing ?? this.prefixIconSpacing,
titleSpacing: titleSpacing ?? this.titleSpacing,
middleSpacing: middleSpacing ?? this.middleSpacing,
suffixIconSpacing: suffixIconSpacing ?? this.suffixIconSpacing,
);