init method
Access Vital APIs through a Vital API Key. Not recommended for usage in production mobile apps.
When adopting the Vital Sign-In Token scheme, use VitalClient.forSignedInUser(...)
instead, which would perform Vital API requests on behalf of the signed-in user.
https://docs.tryvital.io/wearables/sdks/authentication#vital-sign-in-token
Implementation
void init({
required Region region,
required Environment environment,
required String apiKey,
}) {
_httpClient = http.Client();
_baseUrl = _resolveUrl(region, environment);
_authInterceptor = VitalInterceptor(false, apiKey);
_region = region;
_environment = environment;
}