init static method
void
init({})
Initializes the Altibbi service with the specified parameters.
token
: The authentication token for the service.baseUrl
: The base URL for the service.language
: The language preference for the service (default is 'en').sinaModelEndPoint
: The Sina model endpoint for the service (default is an empty string).
Implementation
static void init({required String token, required String baseUrl, String language = 'en', String sinaModelEndPoint = ""}) {
authToken = token;
url = baseUrl;
lang = language;
sinaModelEndPointUrl = sinaModelEndPoint;
}