RepositoryBase<T, U> class abstract

Constructors

RepositoryBase()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(T value) Future<T>
addEntity(String documentID, U value) Future<U>
changeValue(String documentId, String fieldName, num changeByThisValue) Future<T?>
delete(T value) Future<void>
deleteAll() Future<void>
flush() → void
fromMap(Object? o, {Map<String, String>? newDocumentIds}) → U?
get(String? id, {dynamic onError(Exception)?}) Future<T?>
getEntity(String? id, {dynamic onError(Exception)?}) Future<U?>
getSubCollection(String documentId, String name) → dynamic
listen(XModelTrigger trigger, {String? orderBy, bool? descending, Object? startAfter, int? limit, int? privilegeLevel, EliudQuery? eliudQuery}) StreamSubscription<List<T?>>
listenTo(String documentId, XChanged changed) StreamSubscription<T?>
listenWithDetails(XModelTrigger trigger, {String? orderBy, bool? descending, Object? startAfter, int? limit, int? privilegeLevel, EliudQuery? eliudQuery}) StreamSubscription<List<T?>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
timeStampToString(dynamic timeStamp) String?
toString() String
A string representation of this object.
inherited
update(T value) Future<T>
updateEntity(String documentID, U value) Future<U>
values({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Stream<List<T?>>
valuesList({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Future<List<T?>>
valuesListWithDetails({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Future<List<T?>>
valuesWithDetails({String? orderBy, bool? descending, Object? startAfter, int? limit, SetLastDoc? setLastDoc, int? privilegeLevel, EliudQuery? eliudQuery}) Stream<List<T?>>

Operators

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