initialize method

void initialize(
  1. String apiKey
)

Initialize the singleton with your API key

Implementation

void initialize(String apiKey) {
  if (apiKey.isEmpty) {
    throw TuulException(code: '400', message: 'API key cannot be empty');
  }
  _apiKey = apiKey;
}