FAlert constructor
const
FAlert({
- required Widget title,
- Widget icon = const Icon(FIcons.circleAlert),
- Widget? subtitle,
- FAlertVariant? variant,
- 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.icon = const Icon(FIcons.circleAlert),
this.subtitle,
this.variant,
this.style = const .context(),
super.key,
});