copyWith method
- @useResult
- EdgeInsetsGeometry? padding,
- FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta> ? prefixIconStyle, - double? prefixIconSpacing,
- FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta> ? titleTextStyle, - double? titleSpacing,
- FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta> ? subtitleTextStyle, - double? middleSpacing,
- FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta> ? detailsTextStyle, - FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta> ? suffixIconStyle, - double? suffixIconSpacing,
Returns a copy of this FTileContentStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FTileContentStyle.padding - The content's padding.
- FTileContentStyle.prefixIconStyle - The prefix icon style.
- FTileContentStyle.prefixIconSpacing - The horizontal spacing between the prefix icon and title and the subtitle.
- FTileContentStyle.titleTextStyle - The title's text style.
- FTileContentStyle.titleSpacing - The vertical spacing between the title and the subtitle.
- FTileContentStyle.subtitleTextStyle - The subtitle's text style.
- FTileContentStyle.middleSpacing - The minimum horizontal spacing between the title, subtitle, combined, and the details.
- FTileContentStyle.detailsTextStyle - The details text style.
- FTileContentStyle.suffixIconStyle - The suffix icon style.
- FTileContentStyle.suffixIconSpacing - The horizontal spacing between the details and suffix icon.
Implementation
@useResult
FTileContentStyle copyWith({
EdgeInsetsGeometry? padding,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta>? prefixIconStyle,
double? prefixIconSpacing,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta>? titleTextStyle,
double? titleSpacing,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta>? subtitleTextStyle,
double? middleSpacing,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta>? detailsTextStyle,
FVariantsDelta<FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta>? suffixIconStyle,
double? suffixIconSpacing,
}) => .new(
padding: padding ?? this.padding,
prefixIconStyle: prefixIconStyle?.call(this.prefixIconStyle) ?? this.prefixIconStyle,
prefixIconSpacing: prefixIconSpacing ?? this.prefixIconSpacing,
titleTextStyle: titleTextStyle?.call(this.titleTextStyle) ?? this.titleTextStyle,
titleSpacing: titleSpacing ?? this.titleSpacing,
subtitleTextStyle: subtitleTextStyle?.call(this.subtitleTextStyle) ?? this.subtitleTextStyle,
middleSpacing: middleSpacing ?? this.middleSpacing,
detailsTextStyle: detailsTextStyle?.call(this.detailsTextStyle) ?? this.detailsTextStyle,
suffixIconStyle: suffixIconStyle?.call(this.suffixIconStyle) ?? this.suffixIconStyle,
suffixIconSpacing: suffixIconSpacing ?? this.suffixIconSpacing,
);