copyWith method
- @useResult
- BoxDecorationDelta? decoration,
- FCardContentStyleDelta? contentStyle,
Returns a copy of this FCardStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FCardStyle.decoration - The decoration.
- FCardStyle.contentStyle - The card content's style.
Implementation
@useResult
FCardStyle copyWith({BoxDecorationDelta? decoration, FCardContentStyleDelta? contentStyle}) => .new(
decoration: decoration?.call(this.decoration) ?? this.decoration,
contentStyle: contentStyle?.call(this.contentStyle) ?? this.contentStyle,
);