AutoPilotConfig class
Constructors
-
AutoPilotConfig({required String baseUrl, String tokenType = 'Bearer', int timeoutSeconds = 30, bool enableLogs = kDebugMode, bool enableCache = false, Duration cacheDuration = const Duration(minutes: 5), int maxRetries = 3, Duration retryDelay = const Duration(seconds: 1), bool enableTokenRefresh = false, Future<String?> onRefreshToken()?, bool enableGlobalLoader = false, void onLoadingChanged(bool loading)?, void onError(String message, int statusCode)?, void onRequestSent(String url, String method)?, void onResponseReceived(String url, int statusCode, Duration time)?, String successKey = 'status', dynamic successValue = true, String messageKey = 'message', String dataKey = 'data', bool enableDeduplication = true, bool printPayload = true, bool prettyPrint = true})
-
const
Methods
-
copyWith({String? baseUrl, String? tokenType, int? timeoutSeconds, bool? enableLogs, bool? enableCache, Duration? cacheDuration, int? maxRetries, Duration? retryDelay, bool? enableTokenRefresh, Future<String?> onRefreshToken()?, bool? enableGlobalLoader, void onLoadingChanged(bool)?, void onError(String, int)?, void onRequestSent(String, String)?, void onResponseReceived(String, int, Duration)?, String? successKey, dynamic successValue, String? messageKey, String? dataKey, bool? enableDeduplication, bool? printPayload, bool? prettyPrint})
→ AutoPilotConfig
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited