copyWith method

AuthorizationServiceConfig copyWith({
  1. String? baseUrl,
  2. String? apiKey,
  3. Duration? timeout,
  4. Map<String, String>? headers,
  5. int? maxRetries,
  6. Duration? retryDelay,
})

Create a copy with updated values

Implementation

AuthorizationServiceConfig copyWith({
  String? baseUrl,
  String? apiKey,
  Duration? timeout,
  Map<String, String>? headers,
  int? maxRetries,
  Duration? retryDelay,
}) {
  return AuthorizationServiceConfig(
    baseUrl: baseUrl ?? this.baseUrl,
    apiKey: apiKey ?? this.apiKey,
    timeout: timeout ?? this.timeout,
    headers: headers ?? this.headers,
    maxRetries: maxRetries ?? this.maxRetries,
    retryDelay: retryDelay ?? this.retryDelay,
  );
}