copyWith method
- @useResult
- double? imageSpacing,
- double? subtitleSpacing,
- TextStyle? titleTextStyle,
- TextStyle? subtitleTextStyle,
- EdgeInsetsGeometry? padding,
Returns a copy of this FCardContentStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
imageSpacing
The spacing between the image and the title, subtitle, and child if any of them is provided. Defaults to 10.
subtitleSpacing
The spacing between the title/subtitle and the child if an image is provided. Defaults to 8.
titleTextStyle
The title's TextStyle.
subtitleTextStyle
The subtitle's TextStyle.
padding
The padding. Defaults to EdgeInsets.all(16)
.
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,
);