FAlert constructor
const
FAlert({
- required Widget title,
- Clip clipBehavior = .none,
- Widget? icon,
- Widget? subtitle,
- FAlertVariant variant = .primary,
- FAlertStyleDelta style = const .context(),
- Key? key,
Creates a FAlert with a title, subtitle, and icon.
The alert's layout is as follows:
|---------------------------|
| [icon] [title] |
| [subtitle] |
|---------------------------|
Implementation
const FAlert({
required this.title,
this.clipBehavior = .none,
this.icon,
this.subtitle,
this.variant = .primary,
this.style = const .context(),
super.key,
});