DataSourceHttp<T> class
A DataSource based in a DataCallHttp for requests.
- Inheritance
-
- Object
- DataHandler<
T> - DataSource<
T> - DataSourceHttp
Constructors
-
DataSourceHttp(String domain, String name, {String? baseURL, String? baseURLProxy, Object? parameters, DataSourceOperationHttp? opGet, DataSourceOperationHttp? opFind, DataSourceOperationHttp? opFindByID, DataSourceOperationHttp? opFindByIDRange, DataTransformerTo<
T> ? transformerTo, DataTransformerToList<T> ? transformerToList, DataTransformerFrom<T> ? transformerFrom, DataTransformerFromList<T> ? transformerFromList})
Properties
- baseURL → String?
-
final
- baseURLProxy → String?
-
final
- domain → String
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
finalinherited
- isRegistered → bool
-
no setterinherited
- name → String
-
finalinherited
- opFind → DataSourceOperationHttp?
-
final
- opFindByID → DataSourceOperationHttp?
-
final
- opFindByIDRange → DataSourceOperationHttp?
-
final
- opGet → DataSourceOperationHttp?
-
final
- parameters → Object?
-
final
- 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 -
override
-
findByIDRange(
Object? fromID, Object? toID) → Future< List< T?> ?> -
Finds data by ID range.
inherited
-
findByIDRangeImpl(
Map< String, dynamic> parameters) → Future -
override
-
findImpl(
Map< String, dynamic> parameters) → Future -
override
-
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
-
toJson(
[bool withIndent = false]) → String -
toJsonMap(
) → Map? -
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?> ? -
inherited
-
transformTo(
Object? o) → T? -
inherited
-
transformToList(
Object? o) → List< T> ? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
from<
T> (Object? config) → DataSourceHttp< T> ?