ApiRequest class
Constructors
Properties
-
bodyData
→ Stream<
List< int> > -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, List< String> > -
final
- method → ApiRequestMethod
-
final
-
queryParams
→ Map<
String, String> -
final
- route → Route
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session → Session?
-
final
Methods
-
getBody<
T> ({TransferBean< T> ? bean}) → Future<T> - Returns decoded body data.
-
getByteBody(
) → Future< Uint8List> - Returns a Uint8List of the body data.
-
getJsonBody(
) → Future< Map< String, dynamic> > - Returns a Map<String, dynamic> representation of json body data.
-
getJsonListBody(
) → Future< List> - Returns a List representation of json body data.
-
getParam<
T> (String name) → T - Returns the named query parameter.
-
getSession<
T extends Session> () → T -
Returns the current session of type
T
. -
getTextBody(
) → Future< String> - Returns a String representation of the body data.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withSession(
Session? session) → ApiRequest
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited