CustomDialog constructor

const CustomDialog({
  1. Key? key,
  2. String? title,
  3. String? positiveText,
  4. String? negativeText,
  5. VoidCallback? onPositivePressed,
  6. VoidCallback? onNegativePressed,
  7. Widget? child,
  8. DialogType type = DialogType.confirmation,
  9. bool barrierDismissible = true,
  10. IconData? customIcon,
  11. Color? titleColor,
  12. bool isPositiveDestructive = true,
  13. bool isNegativeDestructive = false,
  14. bool isPositiveDefault = false,
  15. bool isPositiveLoading = false,
})

Implementation

const CustomDialog({
  super.key,
  this.title,
  this.positiveText,
  this.negativeText,
  this.onPositivePressed,
  this.onNegativePressed,
  this.child,
  this.type = DialogType.confirmation,
  this.barrierDismissible = true,
  this.customIcon,
  this.titleColor,
  this.isPositiveDestructive = true,
  this.isNegativeDestructive = false,
  this.isPositiveDefault = false,
  this.isPositiveLoading = false,
});