Alert constructor

Alert({
  1. required BuildContext context,
  2. String? id,
  3. Types? type,
  4. AlertStyle style = const AlertStyle(),
  5. Widget? image,
  6. String? title,
  7. String? desc,
  8. Widget? content,
  9. List<Widget>? buttons,
  10. Function? closeFunction,
  11. Icon? closeIcon,
  12. bool onWillPopActive = false,
  13. AlertAnimation? alertAnimation,
})

Alert constructor

context, title are required.

Implementation

Alert({
  required this.context,
  this.id,
  this.type,
  this.style = const AlertStyle(),
  this.image,
  this.title,
  this.desc,
  this.content,
  this.buttons,
  this.closeFunction,
  this.closeIcon,
  this.onWillPopActive = false,
  this.alertAnimation,
});