HttpActions class

Constructors

HttpActions({required String url, Widget? noInternetPage, BuildContext? globalContext, required Map<String, String>? header})

Properties

allHeaders Map<String, String>?
getter/setter pair
context BuildContext?
getter/setter pair
endPoint String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
noInternetScreen Widget?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAuthorizationToken(Future<Map<String, String>> token) → dynamic
checkConnection() Future<ConnectivityResult>
deleteMethod(String url, {dynamic data, Map<String, String>? headers}) Future<HttpResponseMTPL>
getMethod(String url, {Map<String, String>? headers}) Future<HttpResponseMTPL>
getSessionData(Map<String, String> headers, {bool passRawData = false, bool isMultiPart = false}) Future<Map<String, String>>
multipartPost(String url, {required Map data, Map<String, String>? headers, String? picKey, bool passRawData = false}) Future<HttpResponseMTPL>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patchMethod(String url, {dynamic data, Map<String, String>? headers}) Future<HttpResponseMTPL>
postMethod(String url, {dynamic data, Map<String, String>? headers}) Future<HttpResponseMTPL?>
putMethod(String url, {dynamic data, Map<String, String>? headers}) Future<HttpResponseMTPL>
toString() String
A string representation of this object.
inherited

Operators

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