SectionCache class

Implemented types

Constructors

SectionCache(SectionRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(SectionModel model) → Future<SectionModel>