PgrServiceRemoteRepository class
- Inheritance
-
- Object
- DataRepository<
PgrServiceModel, PgrServiceSearchModel> - RemoteRepository<
PgrServiceModel, PgrServiceSearchModel> - PgrServiceRemoteRepository
Constructors
-
PgrServiceRemoteRepository(Dio dio, {required Map<
ApiOperation, String> actionMap, String entityName = 'service'})
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> -
override
-
bulkDelete(
List< EntityModel> entities) → FutureOr<Response> -
override
-
bulkUpdate(
List< EntityModel> entities) → FutureOr<Response> -
override
-
create(
PgrServiceModel entity) → FutureOr< Response> -
The
create
method creates a new entity.override -
delete(
EntityModel entity) → FutureOr< Response> -
The
delete
method deletes an existing entity.override -
downSync(
PgrServiceSearchModel 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
-
search(
PgrServiceSearchModel query, {int? offSet, int? limit}) → FutureOr< List< PgrServiceModel> > -
The
search
method searches for entities that match the given query.override -
searchWithoutClientReferenceId(
PgrServiceSearchModel query, {int? offSet, int? limit}) → FutureOr< List< PgrServiceResponseModel> > -
singleCreate(
PgrServiceModel 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.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited