AuthorizationServiceConfig class

Configuration for authorization services

Constructors

AuthorizationServiceConfig({required String baseUrl, required String apiKey, Duration timeout = const Duration(seconds: 5), Map<String, String> headers = const {}, int maxRetries = 3, Duration retryDelay = const Duration(seconds: 1)})
Creates configuration for authorization services
const

Properties

apiKey String
API key for authentication
final
baseUrl String
Base URL for the authorization service
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
Additional headers to include in requests
final
maxRetries int
Maximum number of retries for failed requests
final
retryDelay Duration
Delay between retry attempts
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
Timeout duration for requests
final

Methods

copyWith({String? baseUrl, String? apiKey, Duration? timeout, Map<String, String>? headers, int? maxRetries, Duration? retryDelay}) AuthorizationServiceConfig
Create a copy with updated values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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