DialogCache class

Implemented types

Constructors

DialogCache(DialogRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(DialogModel model) → Future<DialogModel>