FAlert constructor

const FAlert({
  1. required Widget title,
  2. Widget icon = const Icon(FIcons.circleAlert),
  3. Widget? subtitle,
  4. FBaseAlertStyle style = FAlertStyle.primary,
  5. 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.style = FAlertStyle.primary,
  super.key,
});