TBusyService 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<TBusyModel>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes resources held by TBusyService.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBusy(bool isBusy, {Duration minBusyDuration = TurboMvvmDefaults.minBusy, String? busyMessage, String? busyTitle, TBusyType? 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({TBusyType busyTypeDefault = TBusyType.defaultValue, Duration timeoutDurationDefault = TurboMvvmDefaults.timeout, String? busyMessageDefault, String? busyTitleDefault, VoidCallback? onTimeoutDefault}) → void
instance({TBusyType? defaultBusyType}) TBusyService
Returns an instance of TBusyService and sets the default TBusyType if provided.