CoreConfiguration class

Class responsible for configuring core functionalities of the application.

Constructors

CoreConfiguration({required String baseUrl, StorageProvider storageProviderForToken = StorageProvider.sharedPref, String refreshTokenKey = "refresh_token", CachePolicy? cachePolicy, String accessTokenKey = "access_token", String? refreshTokenUrl, HttpCacheStorage? cacheStorage, Map<String, String> additionalHeaders = const {}, int timeout = 10000, int connectTimeout = 6000, LoggerConfig? loggerConfig, SecurityContext? securityContext})
Constructor for CoreConfiguration.

Properties

accessTokenKey String
final
additionalHeaders Map<String, String>
final
baseUrl String
final
cachePolicy CachePolicy?
final
cacheStorage HttpCacheStorage?
final
connectTimeout int
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>
no setter
loggerConfig LoggerConfig?
final
refreshTokenKey String
final
refreshTokenUrl String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
securityContext SecurityContext?
final
storageProviderForToken StorageProvider
final
timeout int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setup() → void
Method to perform setup for core functionalities.
toString() String
A string representation of this object.
inherited

Operators

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