StylishDialog constructor
StylishDialog({
- required BuildContext context,
- required StylishDialogType? alertType,
- Widget? title,
- Widget? content,
- @Deprecated('Use `confirmButton` instead. will be removed soon') String? confirmText,
- @Deprecated('Use `cancelButton` instead. will be removed soon') String? cancelText,
- @Deprecated('Use `confirmButton` instead. will be removed soon') VoidCallback? confirmPressEvent,
- @Deprecated('Use `cancelButton` instead. will be removed soon') VoidCallback? cancelPressEvent,
- bool dismissOnTouchOutside = true,
- bool animationLoop = false,
- Widget? addView,
- Widget? confirmButton,
- Widget? cancelButton,
- Color? progressColor,
- Style style = Style.Default,
- DialogController? controller,
- Color? backgroundColor,
Implementation
StylishDialog({
required this.context,
required this.alertType,
this.title,
this.content,
@Deprecated('Use `confirmButton` instead. will be removed soon')
this.confirmText,
@Deprecated('Use `cancelButton` instead. will be removed soon')
this.cancelText,
@Deprecated('Use `confirmButton` instead. will be removed soon')
this.confirmPressEvent,
@Deprecated('Use `cancelButton` instead. will be removed soon')
this.cancelPressEvent,
this.dismissOnTouchOutside = true,
this.animationLoop = false,
this.addView,
this.confirmButton,
this.cancelButton,
this.progressColor,
this.style = Style.Default,
this.controller,
this.backgroundColor,
}) : assert(alertType != null, "StylishDialog: Require non-null alert type");