initialize method

void initialize(
  1. String apiKey
)

Initializes the service with an API key.

Implementation

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