instance property

LocationPlatform instance

The default instance of LocationPlatform to use.

Platform-specific plugins should override this with their own class that extends LocationPlatform when they register themselves.

Defaults to MethodChannelLocation.

Implementation

static LocationPlatform get instance => _instance;
void instance=(LocationPlatform instance)

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

Implementation

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