ProfileCache class

Implemented types

Constructors

ProfileCache(ProfileRepository reference)

Properties

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

Methods

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

Operators

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

Static Methods

refreshRelations(ProfileModel model) Future<ProfileModel>