instance property

LiveLocationPlatform get instance

The default instance of LiveLocationPlatform to use.

Defaults to MethodChannelLiveLocation.

Implementation

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

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

Implementation

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