copyWith method
Returns a copy of this FAlertStyles with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
primary
The primary alert style.
destructive
The destructive alert style.
Implementation
@useResult
FAlertStyles copyWith({FAlertStyle Function(FAlertStyle)? primary, FAlertStyle Function(FAlertStyle)? destructive}) =>
FAlertStyles(
primary: primary != null ? primary(this.primary) : this.primary,
destructive: destructive != null ? destructive(this.destructive) : this.destructive,
);