CustomDialog constructor

const CustomDialog({
  1. Key? key,
  2. String title = "Oups !",
  3. required String message,
  4. String icon = "assets/icons/close_icon.svg",
  5. required Function onTap,
  6. Widget? bodyWidget,
  7. Color titleColor = red,
  8. bool showAlertIcon = false,
})

Implementation

const CustomDialog({
  super.key,
  this.title = "Oups !",
  required this.message,
  this.icon = "assets/icons/close_icon.svg",
  required this.onTap,
  this.bodyWidget,
  this.titleColor = red,
  this.showAlertIcon = false,
});