RoomCache class

Implemented types

Constructors

RoomCache(RoomRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(RoomModel model) Future<RoomModel>