FAlert constructor

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