instance property
MovesensePlatform
get
instance
The default instance of MovesensePlatform to use.
Defaults to the Pigeon-backed host API implementation.
Implementation
static MovesensePlatform get instance {
return _instance ??= PigeonMovesense();
}
set
instance
(MovesensePlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends MovesensePlatform when they register themselves.
Implementation
static set instance(MovesensePlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}