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
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, String? paramAsBody, String? changeLocalization, String tokenKey = 'Bearer ', bool? useDefaultURl, bool? showLogs, bool? usePreCheckFn, int? callTimeoutInSec, Future<T> httpCallPreFunction<T>()?, bool callHttpCallPreFunction = true, Future<T> httpCallPostFunction<T>()?, bool callHttpCallPostFunction = true})
→ Future
-
-
callGetApi(String endPoint, {bool hasAuth = true, required String token, bool? defaultResponse, bool? withStream, bool? utf8Convert, bool isTypeJson = true, String? changeLocalization, String tokenKey = 'Bearer ', bool? useDefaultURl, bool? showLogs, int? callTimeoutInSec, bool? usePreCheckFn, Future<T> httpCallPreFunction<T>()?, bool callHttpCallPreFunction = true, Future<T> httpCallPostFunction<T>()?, bool callHttpCallPostFunction = true})
→ 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, String? changeLocalization, String tokenKey = 'Bearer ', bool? useDefaultURl, bool? showLogs, int? callTimeoutInSec, bool? usePreCheckFn, Future<T> httpCallPreFunction<T>()?, bool callHttpCallPreFunction = true, Future<T> httpCallPostFunction<T>()?, bool callHttpCallPostFunction = true})
→ 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, String? paramAsBody, String? changeLocalization, String tokenKey = 'Bearer ', bool? useDefaultURl, bool? showLogs, int? callTimeoutInSec, bool? usePreCheckFn, Future<T> httpCallPreFunction<T>()?, bool callHttpCallPreFunction = true, Future<T> httpCallPostFunction<T>()?, bool callHttpCallPostFunction = true})
→ 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, String? changeLocalization, String tokenKey = 'Bearer ', bool? useDefaultURl, bool? showLogs, bool? usePreCheckFn, int? callTimeoutInSec, Future<T> httpCallPreFunction<T>()?, bool callHttpCallPreFunction = true, Future<T> httpCallPostFunction<T>()?, bool callHttpCallPostFunction = true})
→ 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, bool isTypeJson = true, String? changeLocalization, String requestType = 'POST', String tokenKey = 'Bearer ', bool? useDefaultURl, bool? showLogs, bool? usePreCheckFn, int? callTimeoutInSec, Future<T> httpCallPreFunction<T>()?, bool callHttpCallPreFunction = true, Future<T> httpCallPostFunction<T>()?, bool callHttpCallPostFunction = true})
→ 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, bool isTypeJson = true, String? changeLocalization, String requestType = 'POST', String tokenKey = 'Bearer ', bool? useDefaultURl, bool? showLogs, bool? usePreCheckFn, int? callTimeoutInSec, Future<T> httpCallPreFunction<T>()?, bool callHttpCallPreFunction = true, Future<T> httpCallPostFunction<T>()?, bool callHttpCallPostFunction = true})
→ Future
-
-
uploadImage(String filename, String fileType, {String endPoint = 'file-upload', bool isUserAvatar = false, bool hasAuth = true, String thumbnail = '', required String token, required String userName, bool? defaultResponse, String tokenKey = 'Bearer ', bool? useDefaultURl, bool? showLogs, bool? usePreCheckFn, int? callTimeoutInSec, Future<T> httpCallPreFunction<T>()?, bool callHttpCallPreFunction = true, Future<T> httpCallPostFunction<T>()?, bool callHttpCallPostFunction = true})
→ Future
-