VitalClient class
Constructors
- VitalClient()
- VitalClient.forSignedInUser({required Region region, required Environment environment})
- Access Vital APIs on behalf of the signed-in Vital user.
Properties
- activityService → ActivityService
-
latefinal
- bodyService → BodyService
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- linkService → LinkService
-
latefinal
- profileService → ProfileService
-
latefinal
- providersService → ProvidersService
-
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sleepService → SleepService
-
latefinal
- testkitsService → TestkitsService
-
latefinal
- userService → UserService
-
latefinal
- vitalsService → VitalsService
-
latefinal
- workoutService → WorkoutService
-
latefinal
Methods
-
exchangeOAuthCode(
{required String userId, required String provider, required String authCode}) → Future< void> -
init(
{required Region region, required Environment environment, required String apiKey}) → void - Access Vital APIs through a Vital API Key. Not recommended for usage in production mobile apps.
-
linkProvider(
User user, String provider, String callback) → Future< bool> -
linkWidgetUrl(
{required String redirectUrl, List< ProviderSlug> ? filterOnProviders}) → Future<Uri> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited