showProgressWithStream method

ModProgressController showProgressWithStream({
  1. required Stream<ProgressUpdate> stream,
  2. String? id,
  3. ModProgressConfig config = const ModProgressConfig(),
  4. String? title,
  5. String? subtitle,
  6. VoidCallback? onComplete,
  7. void onError(
    1. String error
    )?,
  8. VoidCallback? onClose,
  9. bool autoCloseOnComplete = false,
  10. Duration? autoCloseDelay,
})

Shows a progress overlay with stream updates

Implementation

ModProgressController showProgressWithStream({
  required Stream<ProgressUpdate> stream,
  String? id,
  ModProgressConfig config = const ModProgressConfig(),
  String? title,
  String? subtitle,
  VoidCallback? onComplete,
  void Function(String error)? onError,
  VoidCallback? onClose,
  bool autoCloseOnComplete = false,
  Duration? autoCloseDelay,
}) {
  return ModProgressManager().showWithStream(
    stream: stream,
    id: id,
    config: config,
    title: title,
    subtitle: subtitle,
    onComplete: onComplete,
    onError: onError,
    onClose: onClose,
    autoCloseOnComplete: autoCloseOnComplete,
    autoCloseDelay: autoCloseDelay,
  );
}