primary static method

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

The alert's primary style.

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

Implementation

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