init static method

void init(
  1. String apiKey
)

Implementation

static void init(String apiKey) {
  if (apiKey.trim().isEmpty) {
    throw Exception('API Key is empty');
  }
  _apiKey = apiKey;
}