AtomicAlert.error constructor
const
AtomicAlert.error({
- Key? key,
- required String text,
- String? subtitle,
- IconData? icon = Icons.error_outline,
- bool closable = false,
- VoidCallback? onClose,
- 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;