RecordDataServiceMixin<RType, KType> mixin
Can be used to apply the delegate pattern in cases where inheritance doesn't make sense.
- Implemented types
-
- RecordDataService<
RType, KType>
- RecordDataService<
Properties
-
changeStream
→ Stream<
RType> -
no setteroverride
-
dataStream
→ Stream<
RType> -
Returns all changes/loads
use changeStream if you only want updates
no setterinherited
-
delegate
→ RecordDataService<
RType, KType> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
loadedRecords
→ Iterable<
RType?> -
no setteroverride
- 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 -
override
-
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
override
-
getRecord(
KType recordId) → Future< RType?> -
override
-
getService(
KType recordId) → DataService< RType> ? -
override
-
internalFetchRecord(
KType id) → Future< RType> -
Retrieves the latest copy of the data from an external source
override
-
isInitialized(
KType recordId) → bool -
override
-
isLoaded(
KType recordId) → bool -
override
-
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.
override
-
refreshRecord(
KType recordId) → Future< RType> ? -
override
-
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? -
override
-
tryGetService(
KType recordId) → DataService< RType> ? -
override
-
tryRefreshRecord(
KType recordId) → Future< RType> ? -
override
-
updateRecord(
KType id, Future update(RType? record), {bool silent = false}) → Future -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited