APIRequest class

Constructors

APIRequest({String? url, String? path, Map<String, String>? headers, Map<String, dynamic>? payload, String method = 'GET'})

Properties

hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearHeaders() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeHeader(dynamic key) → void
send() Future<Response>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

base String?
getter/setter pair

Static Methods

addDefaultHeaders(Map<String, String> h) → dynamic
removeDefaultHeaders(Map<String, String> h) → dynamic