FAlert constructor

const FAlert({
  1. required Widget title,
  2. FAlertVariant variant = .primary,
  3. FAlertStyleDelta style = const .context(),
  4. bool liveRegion = true,
  5. Clip clipBehavior = .none,
  6. Widget? icon,
  7. Widget? subtitle,
  8. 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.variant = .primary,
  this.style = const .context(),
  this.liveRegion = true,
  this.clipBehavior = .none,
  this.icon,
  this.subtitle,
  super.key,
});