instance property
GeolocatorPlatform
get
instance
The default instance of GeolocatorPlatform to use.
Defaults to MethodChannelGeolocator
.
Implementation
static GeolocatorPlatform get instance => _instance;
set
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.verify(instance, _token);
_instance = instance;
}