instance property

The default instance of GeolocatorPlatform to use.

Defaults to MethodChannelGeolocator.

Implementation

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

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

Implementation

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