AtomicAlert.error constructor

const AtomicAlert.error({
  1. Key? key,
  2. required String text,
  3. String? subtitle,
  4. IconData? icon = Icons.error_outline,
  5. bool closable = false,
  6. VoidCallback? onClose,
  7. EdgeInsetsGeometry? margin,
})

Implementation

const AtomicAlert.error({
  super.key,
  required this.text,
  this.subtitle,
  this.icon = Icons.error_outline,
  this.closable = false,
  this.onClose,
  this.margin,
}) : variant = AtomicAlertVariant.error;