BusyService class

A service to manage the busy state of the application. Utilizes a ValueNotifier to notify subscribers when the busy state changes.

Properties

hashCode int
The hash code for this object.
no setterinherited
isBusy bool
no setter
isBusyListenable ValueListenable<BusyModel>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes resources held by BusyService.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBusy(bool isBusy, {Duration minBusyDuration = kValuesMinBusyDuration, String? busyMessage, String? busyTitle, BusyType? busyType, Duration? timeoutDuration, VoidCallback? onTimeout, dynamic payload}) → void
Sets the busy state of the application.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

initialise({BusyType busyTypeDefault = BusyType.defaultValue, Duration timeoutDurationDefault = kValuesTimeoutDuration, String? busyMessageDefault, String? busyTitleDefault, VoidCallback? onTimeoutDefault}) → void
instance({BusyType? defaultBusyType}) BusyService
Returns an instance of BusyService and sets the default BusyType if provided.