Alert constructor

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

Alert constructor

context is required.

Implementation

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