copyWith method
- @useResult
- BoxDecoration? decoration,
- FCardContentStyle contentStyle(
- FCardContentStyle style
Returns a copy of this FCardStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FCardStyle.decoration - The decoration.
- FCardStyle.contentStyle - The card content's style.
Implementation
@useResult
FCardStyle copyWith({BoxDecoration? decoration, FCardContentStyle Function(FCardContentStyle style)? contentStyle}) =>
FCardStyle(
decoration: decoration ?? this.decoration,
contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
);