HTTPClient class

Constructors

HTTPClient(String url)

Properties

baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeoutDuration Duration
final

Methods

delete({Map<String, String>? queryParams, Function? onSuccess, Function? onError}) Future<void>
get({Map<String, String>? queryParams, Function? onSuccess, Function? onError}) Future<void>
login(String username, String password, Function? onSuccess, Function? onError) Future<void>
logout(Function? onSuccess, Function? onError) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch({Map<String, dynamic>? body, Function? onSuccess, Function? onError}) Future<void>
post({Map<String, dynamic>? body, Function? onSuccess, Function? onError}) Future<void>
put({Map<String, dynamic>? body, Function? onSuccess, Function? onError}) Future<void>
setJSONContentTypeHeader(Map<String, dynamic>? body) Map<String, String>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

email String?
getter/setter pair
env Map<String, String>
final
username String?
getter/setter pair