copyWith method
- @useResult
- double? imageSpacing,
- double? subtitleSpacing,
- TextStyleDelta? titleTextStyle,
- TextStyleDelta? subtitleTextStyle,
- EdgeInsetsGeometry? padding,
Returns a copy of this FCardContentStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FCardContentStyle.imageSpacing - The spacing between the image and the title, subtitle, and child if any of them is provided.
- FCardContentStyle.subtitleSpacing - The spacing between the title/subtitle and the child if an image is provided.
- FCardContentStyle.titleTextStyle - The title's TextStyle.
- FCardContentStyle.subtitleTextStyle - The subtitle's TextStyle.
- FCardContentStyle.padding - The padding.
Implementation
@useResult
FCardContentStyle copyWith({
double? imageSpacing,
double? subtitleSpacing,
TextStyleDelta? titleTextStyle,
TextStyleDelta? subtitleTextStyle,
EdgeInsetsGeometry? padding,
}) => .new(
imageSpacing: imageSpacing ?? this.imageSpacing,
subtitleSpacing: subtitleSpacing ?? this.subtitleSpacing,
titleTextStyle: titleTextStyle?.call(this.titleTextStyle) ?? this.titleTextStyle,
subtitleTextStyle: subtitleTextStyle?.call(this.subtitleTextStyle) ?? this.subtitleTextStyle,
padding: padding ?? this.padding,
);