copyWith method

  1. @useResult
FCardStyle copyWith({
  1. BoxDecorationDelta? decoration,
  2. FCardContentStyleDelta? contentStyle,
})

Returns a copy of this FCardStyle with the given properties replaced.

See customizing widget styles.

Parameters

Implementation

@useResult
FCardStyle copyWith({BoxDecorationDelta? decoration, FCardContentStyleDelta? contentStyle}) => .new(
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  contentStyle: contentStyle?.call(this.contentStyle) ?? this.contentStyle,
);