FAlert constructor

FAlert({
  1. required Widget title,
  2. Widget? icon,
  3. Widget? subtitle,
  4. FAlertStyle style = FAlertStyle.primary,
  5. 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);