GridCache class

Implemented types

Constructors

GridCache(GridRepository reference)

Properties

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

Methods

add(GridModel value) Future<GridModel>
Add a GridModel to the repository, cached
override
addEntity(String documentID, GridEntity value) Future<GridEntity>
Add a GridEntity to the repository, cached
override
changeValue(String documentId, String fieldName, num changeByThisValue) Future<GridModel>
override
delete(GridModel value) Future<void>
Delete a GridModel from the repository, cached
override
deleteAll() Future<void>
override
flush() → void
override
fromMap(Object? o, {Map<String, String>? newDocumentIds}) GridEntity?
override
get(String? id, {dynamic onError(Exception)?}) Future<GridModel?>
Retrieve a GridModel with it's id, cached
override
getEntity(String? id, {dynamic onError(Exception p1)?}) Future<GridEntity?>
override
getSubCollection(String documentId, String name) → dynamic
override
listen(GridModelTrigger trigger, {String? orderBy, bool? descending, Object? startAfter, int? limit, int? privilegeLevel, EliudQuery? eliudQuery}) StreamSubscription<List<GridModel?>>
override
listenTo(String documentId, GridChanged changed, {GridErrorHandler? errorHandler}) StreamSubscription<GridModel?>
override
listenWithDetails(GridModelTrigger trigger, {String? orderBy, bool? descending, Object? startAfter, int? limit, int? privilegeLevel, EliudQuery? eliudQuery}) StreamSubscription<List<GridModel?>>
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(GridModel value) Future<GridModel>
Update a GridModel
override
updateEntity(String documentID, GridEntity value) Future<GridEntity>
Update a GridEntity in the repository, cached
override
values({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Stream<List<GridModel?>>
Retrieve list of List<GridModel?>
override
valuesList({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Future<List<GridModel?>>
override
valuesListWithDetails({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Future<List<GridModel?>>
override
valuesWithDetails({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Stream<List<GridModel?>>
override

Operators

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

Static Methods

refreshRelations(GridModel model) Future<GridModel>