HttpCalls class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

headerAddOns Map<String, String>?
getter/setter pair
httpCallsDefaultResponse bool
getter/setter pair
httpCallsWithStream bool
getter/setter pair
httpCallTimeoutInSec int
getter/setter pair
httpHeader Map<String, String>?
getter/setter pair
httpResponseUtf8Convert bool
getter/setter pair
internetIssue String
getter/setter pair
isLive bool
getter/setter pair
live String
getter/setter pair
localization String?
getter/setter pair
onHttpCallError ↔ (dynamic Function(dynamic error, dynamic response, bool? defaultResponse)?)
getter/setter pair
preCheckFunction ↔ (Future<bool> Function()?)
getter/setter pair
showAPILogs bool?
getter/setter pair
sServerURL String
getter/setter pair
testing String
getter/setter pair

Static Methods

callDeleteApi(String endPoint, Map params, {bool hasAuth = true, bool hasEncoded = true, required String token, bool? defaultResponse, bool? withStream, bool? utf8Convert, bool isTypeJson = true, Map<String, String>? customHeader, String? paramAsBody, String? changeLocalization, String tokenKey = 'Bearer', bool? useDefaultURl, bool? showLogs, bool? usePreCheckFn, int? callTimeoutInSec}) Future
callGetApi(String endPoint, {bool hasAuth = true, required String token, bool? defaultResponse, bool? withStream, bool? utf8Convert, bool isTypeJson = true, Map<String, String>? customHeader, String? changeLocalization, String tokenKey = 'Bearer', bool? useDefaultURl, bool? showLogs, int? callTimeoutInSec, bool? usePreCheckFn}) Future
callPatchApi(String endPoint, Map params, {bool hasAuth = true, bool hasEncoded = true, required String token, bool? defaultResponse, bool? withStream, bool? utf8Convert, String? paramAsBody, bool isTypeJson = true, Map<String, String>? customHeader, String? changeLocalization, String tokenKey = 'Bearer', bool? useDefaultURl, bool? showLogs, int? callTimeoutInSec, bool? usePreCheckFn}) Future
callPostApi(String endPoint, Map params, {bool hasAuth = true, bool hasEncoded = true, required String token, bool? defaultResponse, bool defaultResponseWithoutJsonDecode = false, bool? withStream, bool? utf8Convert, dynamic isTypeJson = true, Map<String, String>? customHeader, String? paramAsBody, String? changeLocalization, String tokenKey = 'Bearer', bool? useDefaultURl, bool? showLogs, int? callTimeoutInSec, bool? usePreCheckFn}) Future
callPreCheckFn(bool? usePreCheckFn) Future<void>
callPutApi(String endPoint, Map params, {bool hasAuth = true, bool hasEncoded = true, required String token, bool? defaultResponse, bool? withStream, bool? utf8Convert, bool isTypeJson = true, String? paramAsBody, Uint8List? paramAsBodyBinary, Map<String, String>? customHeader, String? changeLocalization, String tokenKey = 'Bearer', bool? useDefaultURl, bool? showLogs, bool? usePreCheckFn, int? callTimeoutInSec}) Future
errorHandler(dynamic error, dynamic response, bool? defaultResponse) → dynamic
getDataObject(Response result, {bool? defaultResponse}) → dynamic
getRequestURL(String postFix, {bool? useDefaultURl}) Uri
showLog(dynamic data, {bool? showLog, bool enableJsonEncode = true, bool showPrint = false, required String logName}) → void
uploadFile(String endPoint, String filename, {String fileKey = 'image', bool isUserAvatar = false, bool hasAuth = true, Map<String, String>? params, required String token, bool? defaultResponse, Map<String, String>? customHeader, bool isTypeJson = true, String? changeLocalization, String requestType = 'POST', String tokenKey = 'Bearer', bool? useDefaultURl, bool? showLogs, bool? usePreCheckFn, int? callTimeoutInSec}) Future
uploadFiles(String endPoint, Map<String, String> fileParams, {List<File>? files, bool isUserAvatar = false, bool hasAuth = true, Map<String, String>? dataParams, required String token, bool? defaultResponse, Map<String, String>? customHeader, bool isTypeJson = true, String? changeLocalization, String requestType = 'POST', String tokenKey = 'Bearer', bool? useDefaultURl, bool? showLogs, bool? usePreCheckFn, int? callTimeoutInSec}) Future
uploadImage(String filename, String fileType, {String endPoint = 'file-upload', bool isUserAvatar = false, bool hasAuth = true, String thumbnail = '', required String token, required String userName, Map<String, String>? customHeader, bool? defaultResponse, String tokenKey = 'Bearer', bool? useDefaultURl, bool? showLogs, bool? usePreCheckFn, int? callTimeoutInSec}) Future