variant property

FAlertVariant? variant
final

The variants used to resolve the style from FAlertStyles.

Defaults to the base (primary) style. The current platform variant is automatically included during style resolution. To change the platform variant, update the enclosing FTheme.platform/FAdaptiveScope.platform.

For example, to create a destructive alert:

FAlert(
 variant: .destructive,
 title: Text('This is a destructive alert'),
)

Implementation

final FAlertVariant? variant;