show static method

Future<void> show(
  1. BuildContext context, {
  2. required String title,
  3. double? progress,
  4. String? status,
  5. bool showCancel = true,
  6. VoidCallback? onCancel,
})

Show the export progress dialog

Implementation

static Future<void> show(
  BuildContext context, {
  required String title,
  double? progress,
  String? status,
  bool showCancel = true,
  VoidCallback? onCancel,
}) {
  return showDialog(
    context: context,
    barrierDismissible: false,
    builder: (ctx) => NiceExportProgress(
      title: title,
      progress: progress,
      status: status,
      showCancel: showCancel,
      onCancel: onCancel ?? () => Navigator.pop(ctx),
    ),
  );
}