instance property

EarthoOnePlatform get instance

The default instance of EarthoOnePlatform to use.

Defaults to MethodChannelEarthoOne.

Implementation

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

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

Implementation

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