instance property
GeocodingPlatform?
instance
The default instance of GeocodingPlatform to use.
Implementation
static GeocodingPlatform? get instance => _instance;
Platform-specific plugins should set this with their own platform-specific class that extends GeocodingPlatform when they register themselves.
Implementation
static set instance(GeocodingPlatform? instance) {
if (instance == null) {
throw AssertionError(
'Instance of geocoding platform has to be non-null.',
);
}
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}