validateKey method
Implementation
void validateKey(String key) {
if (key.isEmpty) {
throw ArgumentError("API Key cannot empty");
}
}
void validateKey(String key) {
if (key.isEmpty) {
throw ArgumentError("API Key cannot empty");
}
}