DataService<T> class abstract

Container for data that allows easy subscriptions and rendering

Mixed-in types
Available extensions

Constructors

DataService({bool isLazy = false})
DataService.of({required _AsyncValueGetter<T> factory})
factory

Properties

controller StreamController<T?>
no setter
currentValue ↔ T?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isReady SafeCompleter<T>
final
log → Logger
no setterinherited
loggerName String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<T?>
no setter
updateStream Stream<T>
no setter
userStateStream Stream<AuthUserProfile>
no setterinherited

Methods

dispose() Future
inherited
doShutdown() Future
override
exec<R>(R block()) → R
inherited
get() Future<T?>
Retrieves the current copy of this data, if it exists, or fetches it.
internalFetchData() Future<T>
Retrieves the latest copy of the data from an external source
isShuttingDown() bool
inherited
loadInitial() Future<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onLogin(AsyncOrCallback onLogin) → void
inherited
onLogout(AsyncOrCallback onLogout) → void
inherited
onShutdown(_AsyncCallback callback) → void
inherited
onStartup(_AsyncCallback callback) → void
inherited
refresh() Future<T>
registerDisposer(FutureOr dispose()) → void
inherited
registerLoginHooks(IAuthState authState) → void
inherited
removeDisposer(FutureOr dispose()) → void
inherited
reset() → void
toString() String
A string representation of this object.
inherited
updateQuiet(T? value) → void
Updates without pushing the new value to the stream

Operators

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