initialize method
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;
}
Initialize the singleton with your API key
void initialize(String apiKey) {
if (apiKey.isEmpty) {
throw TuulException(code: '400', message: 'API key cannot be empty');
}
_apiKey = apiKey;
}