RequestAction class

Implemented types
Implementers

Constructors

RequestAction(String path, String method, {String authority = "", String dispatcherKey = "", Map<String, String>? queryParams, bool isFetching = false})

Properties

authority → String
final
dispatcherKey → String
Identifies the origin of the action (example: "account_kit").
final
hashCode → int
The hash code for this object.
no setteroverride
isFetching → bool
final
method → String
final
networkCompletionKey ↔ String
getter/setter pairoverride-getter
onError ↔ dynamic Function(ApiError)?
getter/setter pairoverride-getter
onSuccess ↔ dynamic Function(Response)?
getter/setter pairoverride-getter
path ↔ String
getter/setter pair
queryParams ↔ Map<String, String>?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → int
Time where the action is dispatched.
final

Methods

apiCall(NetworkState store) → Future<Response>
override
decodeResponse(Store store, Response data) → dynamic
override
endpoint(bool https, String apiEndpoint) → Uri
override
headers(NetworkState store) → Map<String, String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setNetworkCompletionKey(String networkCompletionKey) → dynamic
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object a) → bool
The equality operator.
override