copyWith method

  1. @useResult
FButtonStyles copyWith({
  1. FButtonCustomStyle? primary,
  2. FButtonCustomStyle? secondary,
  3. FButtonCustomStyle? destructive,
  4. FButtonCustomStyle? outline,
  5. FButtonCustomStyle? ghost,
})

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

Implementation

@useResult
FButtonStyles copyWith({
  FButtonCustomStyle? primary,
  FButtonCustomStyle? secondary,
  FButtonCustomStyle? destructive,
  FButtonCustomStyle? outline,
  FButtonCustomStyle? ghost,
}) =>
    FButtonStyles(
      primary: primary ?? this.primary,
      secondary: secondary ?? this.secondary,
      destructive: destructive ?? this.destructive,
      outline: outline ?? this.outline,
      ghost: ghost ?? this.ghost,
    );