copyWith method

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

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