copyWith method
- @useResult
- double? imageSpacing,
- double? subtitleSpacing,
- TextStyle? titleTextStyle,
- TextStyle? subtitleTextStyle,
- EdgeInsetsGeometry? padding,
Returns a copy of this FCardContentStyle with the given properties replaced.
Consider using the CLI to generate a style.
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,
TextStyle? titleTextStyle,
TextStyle? subtitleTextStyle,
EdgeInsetsGeometry? padding,
}) => FCardContentStyle(
imageSpacing: imageSpacing ?? this.imageSpacing,
subtitleSpacing: subtitleSpacing ?? this.subtitleSpacing,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
subtitleTextStyle: subtitleTextStyle ?? this.subtitleTextStyle,
padding: padding ?? this.padding,
);