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