StylishDialog constructor

StylishDialog({
  1. required BuildContext context,
  2. required StylishDialogType? alertType,
  3. Widget? title,
  4. Widget? content,
  5. @Deprecated('Use `confirmButton` instead. will be removed soon') String? confirmText,
  6. @Deprecated('Use `cancelButton` instead. will be removed soon') String? cancelText,
  7. @Deprecated('Use `confirmButton` instead. will be removed soon') VoidCallback? confirmPressEvent,
  8. @Deprecated('Use `cancelButton` instead. will be removed soon') VoidCallback? cancelPressEvent,
  9. bool dismissOnTouchOutside = true,
  10. bool animationLoop = false,
  11. Widget? addView,
  12. Widget? confirmButton,
  13. Widget? cancelButton,
  14. Color? progressColor,
  15. Style style = Style.Default,
  16. DialogController? controller,
  17. 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");