copyWith method
- @useResult
- FButtonStyle? primary,
- FButtonStyle? secondary,
- FButtonStyle? destructive,
- FButtonStyle? outline,
- FButtonStyle? ghost,
inherited
Returns a copy of this FButtonStyles with the given properties replaced.
Implementation
@useResult
FButtonStyles copyWith({
FButtonStyle? primary,
FButtonStyle? secondary,
FButtonStyle? destructive,
FButtonStyle? outline,
FButtonStyle? ghost,
}) => FButtonStyles(
primary: primary ?? this.primary,
secondary: secondary ?? this.secondary,
destructive: destructive ?? this.destructive,
outline: outline ?? this.outline,
ghost: ghost ?? this.ghost,
);