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