Api class

Constructors

Api({required String baseUrl, required String accessToken, required String refreshToken, String serverCertificate = '', List<String> ignorePaths = const [], required dynamic onTokenRefreshed(String newToken), int? connectTimeout, int? receiveTimeout, Map<String, dynamic>? header})

Properties

accessToken String
getter/setter pair
baseUrl String
getter/setter pair
connectTimeout int?
getter/setter pair
dio Dio
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
getter/setter pair
ignorePaths List<String>
getter/setter pair
onTokenRefreshed ↔ dynamic Function(String newToken)
getter/setter pair
receiveTimeout int?
getter/setter pair
refreshToken String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverCertificate String
getter/setter pair

Methods

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

Operators

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