ModProgressManager class

Manager class for showing progress overlays. Supports multiple independent progress instances.

Constructors

ModProgressManager()
factory

Properties

activeCount int
Gets the count of active progress overlays
no setter
activeIds List<String>
Gets all active progress IDs
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close(String id) → void
Closes a specific progress by ID
closeAll() → void
Closes all active progress overlays
getController(String id) ModProgressController?
Gets the controller for a progress by ID
isActive(String id) bool
Checks if a progress with the given ID is active
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show({String? id, ModProgressConfig config = const ModProgressConfig(), String? title, String? subtitle, double? initialProgress, VoidCallback? onComplete, void onError(String error)?, VoidCallback? onClose}) ModProgressController
Shows a progress overlay with the given configuration. Returns a ModProgressController for controlling the progress.
showWithStream({required Stream<ProgressUpdate> stream, String? id, ModProgressConfig config = const ModProgressConfig(), String? title, String? subtitle, VoidCallback? onComplete, void onError(String error)?, VoidCallback? onClose, bool autoCloseOnComplete = false, Duration? autoCloseDelay}) ModProgressController
Shows a progress overlay that listens to a stream for updates. Useful for gRPC streaming or other async progress sources.
toString() String
A string representation of this object.
inherited
updateProgress(String id, {String? title, String? subtitle, double? progress}) → void
Updates an existing progress by ID

Operators

operator ==(Object other) bool
The equality operator.
inherited