FAlert constructor
FAlert({
- required Widget title,
- Widget? icon,
- Widget? subtitle,
- FAlertStyle style = FAlertStyle.primary,
- Key? key,
Creates a FAlert with a tile, subtitle, and icon.
The alert's layout is as follows:
|---------------------------|
| [icon] [title] |
| [subtitle] |
|---------------------------|
Implementation
FAlert({
required this.title,
Widget? icon,
this.subtitle,
this.style = FAlertStyle.primary,
super.key,
}) : icon = icon ?? FIcon(FAssets.icons.circleAlert);