instance property

OnelocatePlatform get instance

The default instance of OnelocatePlatform to use.

Defaults to MethodChannelOnelocate.

Implementation

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

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

Implementation

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