destructive static method

FBaseAlertStyle Function(FAlertStyle) destructive([
  1. FAlertStyle style(
    1. FAlertStyle
    )?
])

The alert's destructive style.

Shorthand for the current context's FAlertStyles.destructive style.

Implementation

static FBaseAlertStyle Function(FAlertStyle) destructive([FAlertStyle Function(FAlertStyle)? style]) =>
    (_) => _Resolve(
      (context) => style?.call(context.theme.alertStyles.destructive) ?? context.theme.alertStyles.destructive,
    );