CkAuthLoadingController class

Manages per-operation loading state using CkBehaviorStream.

Each CkAuthLoadingType gets its own reactive boolean stream, allowing the UI to observe loading for specific operations independently.

Constructors

CkAuthLoadingController()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
isLoading(CkAuthLoadingType type) bool
Whether a specific operation is currently loading.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLoading(CkAuthLoadingType type, bool value) → void
Set loading state for a specific operation.
streamOf(CkAuthLoadingType type) CkBehaviorStream<bool>
Get the loading stream for a specific operation type.
toString() String
A string representation of this object.
inherited
wrap<T>(CkAuthLoadingType type, Future<T> action()) Future<T>
Wraps an async operation with loading state management. Sets loading to true before the operation, and false after (regardless of success or failure).

Operators

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