copyWith method
Returns a copy of this FCardStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
decoration
The decoration.
contentStyle
The card content's style.
Implementation
@useResult
FCardStyle copyWith({BoxDecoration? decoration, FCardContentStyle Function(FCardContentStyle)? contentStyle}) =>
FCardStyle(
decoration: decoration ?? this.decoration,
contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
);