instance property
HealthConnectPlatform
instance
The default instance of HealthConnectPlatform to use.
Defaults to MethodChannelHealthConnect.
Implementation
static HealthConnectPlatform get instance => _instance;
Platform-specific implementations should set this with their own platform-specific class that extends HealthConnectPlatform when they register themselves.
Implementation
static set instance(HealthConnectPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}