validateApiKey method

void validateApiKey(
  1. String? apiKey
)

Validate API key before making requests

Implementation

void validateApiKey(String? apiKey) {
  if (apiKey == null || apiKey.isEmpty) {
    throw AuthError('Missing $providerName API key');
  }
}