primary static method

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

The alert's primary style.

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

Implementation

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