ProductRemoteRepository class

Inheritance

Constructors

ProductRemoteRepository(Dio dio, {required Map<ApiOperation, String> actionMap, String entityName = 'Product'})

Properties

actionMap Map<ApiOperation, String>
finalinherited
bulkCreatePath String
no setterinherited
bulkDeletePath String
no setterinherited
bulkUpdatePath String
no setterinherited
createPath String
no setterinherited
dio → Dio
finalinherited
entityName String
finalinherited
entityNamePlural String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isPlural bool
finalinherited
isSearchResponsePlural bool
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchPath String
no setterinherited
type DataModelType
The type getter returns the type of the data model.
no setteroverride
updatePath String
no setterinherited

Methods

bulkCreate(List<EntityModel> entities) FutureOr<Response>
inherited
bulkDelete(List<EntityModel> entities) FutureOr<Response>
inherited
bulkUpdate(List<EntityModel> entities) FutureOr<Response>
inherited
create(ProductModel entity) FutureOr<Response>
The create method creates a new entity.
inherited
delete(ProductModel entity) FutureOr<Response>
The delete method deletes an existing entity.
inherited
downSync(ProductSearchModel query, {int? offSet, int? limit}) FutureOr<Map<String, dynamic>>
inherited
dumpError(List<EntityModel> entities, DataOperation operation) FutureOr<Response>
inherited
executeFuture<T>({required Future<T> future()}) FutureOr<T>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
The search method searches for entities that match the given query.
inherited
singleCreate(ProductModel entity) FutureOr<Response>
inherited
toString() String
A string representation of this object.
inherited
update(EntityModel entity) FutureOr<Response>
The update method updates an existing entity.
inherited

Operators

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