Datasource<T extends Entity> class abstract

Inheritance

Constructors

Datasource(String collection)

Properties

collection → CollectionReference<Object?>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addOrUpdate(T eventEntity) Future<bool>
fromMap(Map map) → T
inherited
getAll() Future<List<T>>
getByid(String id) Future<T>
getStream() Future<Stream<List<T>>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeById(String id) Future<bool>
toMap(T event) Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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