instance property

LatCompassPlatform get instance

The default instance of LatCompassPlatform to use.

Defaults to MethodChannelLatCompass.

Implementation

static LatCompassPlatform get instance => _instance;
set instance (LatCompassPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends LatCompassPlatform when they register themselves.

Implementation

static set instance(LatCompassPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}