WebServiceHelper class

Constructors

WebServiceHelper()

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

additionalHeaders Function?
getter/setter pair
bearerToken String
getter/setter pair
debugMessage Function?
getter/setter pair
handleError Function?
getter/setter pair
handleException Function?
getter/setter pair
headers Map<String, String>
getter/setter pair
isButtonDisabled bool
getter/setter pair

Static Methods

checkConnection({String url = "google.com"}) Future<bool>
delete({required String url, Map<String, String> queryParams = const {}, Map<String, String>? headers}) Future<Map<String, dynamic>>
downloadFile({required String url, String downloadPath = "", Map<String, dynamic> data = const {}, dynamic downloadProgress(Map<String, dynamic> params)?}) Future
get({required String url, Map<String, String> queryParams = const {}, Map<String, String>? headers}) Future<Map<String, dynamic>>
getDirect({required String url, Map<String, String> queryParams = const {}, Map<String, String>? headers}) Future
getHeaders({Map<String, String>? requestHeaders}) Future<Map<String, String>>
parseUrl(String url, {Map<String, String> params = const {}}) Uri
patch({required String url, Map data = const {}, Map<String, String> queryParams = const {}, Map<String, String>? headers}) Future<Map<String, dynamic>>
post({required String url, Map<String, dynamic> data = const {}, Map<String, String> queryParams = const {}, Map<String, String>? headers}) Future<Map<String, dynamic>>
postRaw({required String url, Object data = Null, Map<String, String>? headers}) Future<Map<String, dynamic>>
put({required String url, Map data = const {}, Map<String, String> queryParams = const {}, Map<String, String>? headers}) Future<Map<String, dynamic>>