DataRepositoryHttp<T> class

A DataRepository based in a DataCallHttp for requests.

Inheritance

Constructors

DataRepositoryHttp(String domain, String name, {String? baseURL, HttpClient? client, HttpMethod? sourceMethod, String? sourcePath, bool sourceFullPath = false, Object? sourceBody, HttpMethod? receiverMethod, String? receiverPath, bool receiverFullPath = false, Object? receiverBody})
DataRepositoryHttp.fromConfig(String domain, String name, HttpCall httpConfigSource, HttpCall httpConfigReceiver)

Properties

domain String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
httpConfigReceiver DataCallHttp
final
httpConfigSource DataCallHttp
final
id String
no setterinherited
isRegistered bool
no setterinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transformerFrom DataTransformerFrom<T>?
getter/setter pairinherited
transformerFromList DataTransformerFromList<T>?
getter/setter pairinherited
transformerTo DataTransformerTo<T?>?
getter/setter pairinherited
transformerToList DataTransformerToList<T>?
getter/setter pairinherited

Methods

doOperation(DataSourceOperation operation, Map<String, String>? parameters, [List<T?>? dataList]) Future<List<T?>?>
inherited
find(Map<String, dynamic>? filter) Future<List<T?>?>
Finds data by filter.
inherited
findByID(Object? id) Future<List<T>?>
Finds data by ID.
inherited
findByIDImpl(Map<String, dynamic> parameters) Future
inherited
findByIDRange(Object? fromID, Object? toID) Future<List<T?>?>
Finds data by ID range.
inherited
findByIDRangeImpl(Map<String, dynamic> parameters) Future
inherited
findImpl(Map<String, dynamic> parameters) Future
inherited
get([Map<String, dynamic>? parameters]) Future<List<T>?>
Gets data using parameters as selector.
inherited
getImpl(Map<String, dynamic>? parameters) Future
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put({Map<String, dynamic>? parameters, List<T>? dataList}) Future<List<T>?>
Puts dataList using parameters.
inherited
putImpl(Map<String, dynamic>? parameters, Object? payload) Future
override
toString() String
A string representation of this object.
inherited
transformFrom(T? data) → dynamic
inherited
transformFromList(List<T>? list) → dynamic
inherited
transformOutput(Object? o) List<T>?
override
transformTo(Object? o) → T?
inherited
transformToList(Object? o) List<T>?
inherited

Operators

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