CustomDialog constructor
const
CustomDialog({
- Key? key,
- String? title,
- String? positiveText,
- String? negativeText,
- VoidCallback? onPositivePressed,
- VoidCallback? onNegativePressed,
- Widget? child,
- DialogType type = DialogType.confirmation,
- bool barrierDismissible = true,
- IconData? customIcon,
- Color? titleColor,
- bool isPositiveDestructive = true,
- bool isNegativeDestructive = false,
- bool isPositiveDefault = false,
- 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,
});