MutableRecordDataService<RType, KType, CType, UType> class abstract

Inheritance
Available Extensions

Constructors

MutableRecordDataService()

Properties

changeStream Stream<RType>
no setterinherited
dataStream Stream<RType>
Returns all changes/loads use changeStream if you only want updates
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
loadedRecords Iterable<RType?>
no setterinherited
log → Logger
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userStateStream Stream<AuthUserProfile>
no setterinherited

Methods

addToStream(RType? record, {bool isLoad = false, bool silent = false}) → void
inherited
applyUpdate(RType source, UType updates) FutureOr<RType?>
create(CType ctype) Future<RType>
delete(KType id) Future<bool>
dispose() Future
inherited
doShutdown() Future
inherited
exec<R>(R block()) → R
inherited
getIdForRecord(RType record) → KType
Returns the key that will be used to key the results
inherited
getRecord(KType recordId) Future<RType?>
inherited
getService(KType recordId) DataService<RType>?
inherited
internalCreate(CType create) Future<RType>
internalDelete(KType id) Future<bool>
internalFetchRecord(KType id) Future<RType>
Retrieves the latest copy of the data from an external source
inherited
internalUpdate(KType id, UType update) Future<RType>
isInitialized(KType recordId) bool
inherited
isLoaded(KType recordId) bool
inherited
isShuttingDown() bool
inherited
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
recordStream(KType recordId, {bool immediate = true}) Stream<RType?>?
@param: immediate Whether you want this stream to include the current value. If false, only updates will be streamed.
inherited
refreshRecord(KType recordId) Future<RType>?
inherited
registerDisposer(FutureOr dispose()) → void
inherited
registerLoginHooks(IAuthState authState) → void
inherited
removeDisposer(FutureOr dispose()) → void
inherited
toString() String
A string representation of this object.
inherited
tryGet(KType recordId) → RType?
inherited
tryGetService(KType recordId) DataService<RType>?
inherited
tryRefreshRecord(KType recordId) Future<RType>?
inherited
update(KType id, UType update) Future<RType>
updateRecord(KType id, Future update(RType? record), {bool silent = false}) Future
inherited

Operators

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