PlexEntityCollection<T extends PlexEntity> class

Constructors

PlexEntityCollection(String name, Database _database, T fromJson(Map<String, dynamic> map), Map<String, dynamic> toJson(T))

Properties

fromJson ↔ T Function(Map<String, dynamic> map)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toJson Map<String, dynamic> Function(T)
getter/setter pair

Methods

delete(T record) Future
deleteById(int id) Future
getAll() Future<List<T>>
getById(int id) Future<T?>
insert(T record) Future
insertAll(List<T> records) Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(T record) Future

Operators

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