Alert constructor

const Alert({
  1. Key? key,
  2. Widget? action,
  3. void afterClose()?,
  4. bool banner = false,
  5. bool? closable,
  6. Widget? closeText,
  7. Widget closeIcon = const Icon(Icons.close),
  8. Widget? description,
  9. Widget? icon,
  10. required Widget message,
  11. bool showIcon = false,
  12. Status type = Status.info,
  13. void onClose()?,
})

Implementation

const Alert({
  Key? key,
  this.action,
  this.afterClose,
  this.banner = false,
  this.closable,
  this.closeText,
  this.closeIcon = const Icon(Icons.close),
  this.description,
  this.icon,
  required this.message,
  this.showIcon = false,
  this.type = Status.info,
  this.onClose,
}) : super(key: key);