TutorialCache class

Implemented types

Constructors

TutorialCache(TutorialRepository reference)

Properties

fullCache Map<String?, TutorialModel?>
final
hashCode int
The hash code for this object.
no setterinherited
reference TutorialRepository
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(TutorialModel value) Future<TutorialModel>
Add a TutorialModel to the repository, cached
override
addEntity(String documentID, TutorialEntity value) Future<TutorialEntity>
Add a TutorialEntity to the repository, cached
override
changeValue(String documentId, String fieldName, num changeByThisValue) Future<TutorialModel>
override
delete(TutorialModel value) Future<void>
Delete a TutorialModel from the repository, cached
override
deleteAll() Future<void>
override
flush() → void
override
fromMap(Object? o, {Map<String, String>? newDocumentIds}) TutorialEntity?
override
get(String? id, {dynamic onError(Exception)?}) Future<TutorialModel?>
Retrieve a TutorialModel with it's id, cached
override
getEntity(String? id, {dynamic onError(Exception p1)?}) Future<TutorialEntity?>
override
getSubCollection(String documentId, String name) → dynamic
override
listen(TutorialModelTrigger trigger, {String? orderBy, bool? descending, Object? startAfter, int? limit, int? privilegeLevel, EliudQuery? eliudQuery}) StreamSubscription<List<TutorialModel?>>
override
listenTo(String documentId, TutorialChanged changed, {TutorialErrorHandler? errorHandler}) StreamSubscription<TutorialModel?>
override
listenWithDetails(TutorialModelTrigger trigger, {String? orderBy, bool? descending, Object? startAfter, int? limit, int? privilegeLevel, EliudQuery? eliudQuery}) StreamSubscription<List<TutorialModel?>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
timeStampToString(dynamic timeStamp) String?
override
toString() String
A string representation of this object.
inherited
update(TutorialModel value) Future<TutorialModel>
Update a TutorialModel
override
updateEntity(String documentID, TutorialEntity value) Future<TutorialEntity>
Update a TutorialEntity in the repository, cached
override
values({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Stream<List<TutorialModel?>>
Retrieve list of List<TutorialModel?>
override
valuesList({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Future<List<TutorialModel?>>
override
valuesListWithDetails({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Future<List<TutorialModel?>>
override
valuesWithDetails({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Stream<List<TutorialModel?>>
override

Operators

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

Static Methods

refreshRelations(TutorialModel model) Future<TutorialModel>