NiceAlert constructor

const NiceAlert({
  1. Key? key,
  2. required String message,
  3. String? title,
  4. NiceAlertSeverity severity = NiceAlertSeverity.info,
  5. IconData? icon,
  6. VoidCallback? onClose,
  7. Widget? action,
  8. bool showIcon = true,
})

Implementation

const NiceAlert({
  super.key,
  required this.message,
  this.title,
  this.severity = NiceAlertSeverity.info,
  this.icon,
  this.onClose,
  this.action,
  this.showIcon = true,
});