copyWith method
- @useResult
- FButtonCustomStyle? primary,
- FButtonCustomStyle? secondary,
- FButtonCustomStyle? destructive,
- FButtonCustomStyle? outline,
- 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,
);