initialize method

void initialize(
  1. String apiKey
)

Initializes the service with your apiKey.

Throws a TuulException if the key is empty.

Implementation

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