HttpUtils class

Available extensions

Constructors

HttpUtils()
factory

Properties

dio → Dio?
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeHttpClient() → void
Close current connection, use with caution!!! if use, Certificate needs to be reset. setupCertificate
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(String path, {bool showLoading = false, DioMethod method = DioMethod.get, Map<String, dynamic>? params, dynamic data, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response>
setupCertificate({String? certFilePath, String? password}) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance HttpUtils
no setter

Constants

baseUrl → const String
connectTimeout → const int
receiveTimeout → const int