setApiKey method
set api key
Implementation
void setApiKey(String apiKey) {
if (apiKey.runtimeType != String) {
throw Exception('api_key must be a string');
} else {
this.apiKey = apiKey;
}
}
set api key
void setApiKey(String apiKey) {
if (apiKey.runtimeType != String) {
throw Exception('api_key must be a string');
} else {
this.apiKey = apiKey;
}
}