DataFetcher class
Constructors
-
DataFetcher({void onSending(Uri, Map<
String, String> , Map<String, dynamic> ?, DataOperation)?, void onReceiving(Response)?, String? customOrigin})
Properties
- client → Client
-
final
- customOrigin → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
no setter
- onReceiving → void Function(Response)?
-
final
-
onSending
→ void Function(Uri, Map<
String, String> , Map<String, dynamic> ?, DataOperation)? -
final
- path → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add<
T extends DataClass> (String route, T data) → Future< DataAwaiter< T> > -
get<
T extends DataClass> (String route, Map< String, dynamic> query) → Future<DataAwaiter< T> > -
mountQueryParameters(
Map< String, dynamic> map) → String -
mountUri(
String route, Map< String, dynamic> query) → Uri -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove<
T extends DataClass> (String route, {T? data, Map< String, dynamic> query = const <String, String>{}}) → Future<DataAwaiter< T> > -
toString(
) → String -
A string representation of this object.
inherited
-
update<
T extends DataClass> (String route, T data) → Future< DataAwaiter< T> >
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited