showProgress method

ModProgressController showProgress({
  1. String? id,
  2. ModProgressConfig config = const ModProgressConfig(),
  3. String? title,
  4. String? subtitle,
  5. double? initialProgress,
  6. VoidCallback? onComplete,
  7. void onError(
    1. String error
    )?,
  8. VoidCallback? onClose,
})

Shows a progress overlay

Implementation

ModProgressController showProgress({
  String? id,
  ModProgressConfig config = const ModProgressConfig(),
  String? title,
  String? subtitle,
  double? initialProgress,
  VoidCallback? onComplete,
  void Function(String error)? onError,
  VoidCallback? onClose,
}) {
  return ModProgressManager().show(
    id: id,
    config: config,
    title: title,
    subtitle: subtitle,
    initialProgress: initialProgress,
    onComplete: onComplete,
    onError: onError,
    onClose: onClose,
  );
}