init method
Implementation
void init(String apiKey) {
_apiKey = apiKey;
var part = apiKey.split("_");
if (part[0] == 'dev') {
_baseUrl = _devUrl;
} else if (part[0] == 'prod') {
_baseUrl = _prodUrl;
} else {
_baseUrl = null;
throw "Invalid API Key";
}
// log(_apiKey!);
}