init static method

void init({
  1. required String token,
  2. required String baseUrl,
  3. String language = 'en',
  4. String sinaModelEndPoint = "",
})

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;
}