setApiKey method

void setApiKey(
  1. String apiKey
)

set api key

Implementation

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