AdaptiveProgressDialog<T> constructor

AdaptiveProgressDialog<T>({
  1. required String title,
  2. required String content,
  3. String? confirmationButtonLabel,
  4. String? cancelButtonLabel,
  5. AdaptiveProgressDialogStyle? adaptiveProgressDialogStyle,
  6. Future<T?> confirmButtonCallback()?,
  7. bool isDismissible = true,
})

This is a class that provides an easy way to show a progress dialog with an adaptive

style depending on the platform. The widget is generic and takes a type parameter

T which is used to represent the data that can be returned from the dialog.

The data is returned via AdaptiveProgressDialogResult class.

Implementation

AdaptiveProgressDialog({
  required this.title,
  required this.content,
  this.confirmationButtonLabel,
  this.cancelButtonLabel,
  this.adaptiveProgressDialogStyle,
  this.confirmButtonCallback,
  this.isDismissible = true,
});