ApiManager class abstract
Abstract interface for the underlying HTTP client manager.
Constructors
Properties
- dio → Dio?
-
The configured
Dioinstance. Available after initialize is called.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
-
initialize(
{required String baseURL, Duration connectTimeout, Duration receiveTimeout, String contentType, Map< String, dynamic> headers, String? pemCertificate, required bool isToEnableSSLCertificate, Uint8List? localCertificateBytes, bool isDevEnv}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeHeader(
String key) → void -
Removes a single header by
keyfrom the default headers. -
toString(
) → String -
A string representation of this object.
inherited
-
updateHeaders(
Map< String, dynamic> headers) → void -
Merges
headersinto the default headers sent on every request.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited