copyWith method
- @useResult
- FAlertStyle primary(
- FAlertStyle style
- FAlertStyle destructive(
- FAlertStyle style
Returns a copy of this FAlertStyles with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FAlertStyles.primary - The primary alert style.
- FAlertStyles.destructive - The destructive alert style.
Implementation
@useResult
FAlertStyles copyWith({
FAlertStyle Function(FAlertStyle style)? primary,
FAlertStyle Function(FAlertStyle style)? destructive,
}) => FAlertStyles(
primary: primary != null ? primary(this.primary) : this.primary,
destructive: destructive != null ? destructive(this.destructive) : this.destructive,
);