copyWith method

  1. @useResult
FCardStyle copyWith({
  1. BoxDecoration? decoration,
  2. FCardContentStyle contentStyle(
    1. FCardContentStyle style
    )?,
})

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FCardStyle copyWith({BoxDecoration? decoration, FCardContentStyle Function(FCardContentStyle style)? contentStyle}) =>
    FCardStyle(
      decoration: decoration ?? this.decoration,
      contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
    );