Repository class abstract

An abstract class that defines a standard structure for CRUD operations.

This can be implemented by any repository class that handles data access, whether it's via HTTP APIs, a local database, or other data sources.

Constructors

Repository()

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(dynamic body) Future
Adds a new item to the data source.
delete(dynamic body) Future
Deletes an item from the data source.
edit(dynamic body) Future
Updates an existing item.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retrieveAll({Map query = const {}}) Future
Retrieves a list of items.
retrieveSingle({Map query = const {}}) Future
Retrieves a single item, typically using an ID or a unique filter.
toString() String
A string representation of this object.
inherited

Operators

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