CrudService<T extends Model> class
abstract
Constructors
-
CrudService(String collection, T fromJson(Map<
String, dynamic> json))
Properties
- collection → String
-
final
- database → AppstraxDatabase
-
final
-
fromJson
→ T Function(Map<
String, dynamic> json) -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
String id) → Future< void> -
find(
{FetchQuery? query}) → Future< List< T> ?> -
findById(
String id) → Future< T> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
T object) → Future< T> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited