initialize method
Initializes the singleton with your apiKey.
Throws a TuulException if the provided key is empty.
Implementation
void initialize(String apiKey) {
if (apiKey.isEmpty) {
throw TuulException(code: '400', message: 'API key cannot be empty');
}
_apiKey = apiKey;
}