copyWith method

  1. @useResult
FAlertStyles copyWith({
  1. FAlertStyle primary(
    1. FAlertStyle style
    )?,
  2. FAlertStyle destructive(
    1. FAlertStyle style
    )?,
})

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

Consider using the CLI to generate a style.

Parameters

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,
);