instance property
LocationPlatform
get
instance
The default instance of LocationPlatform to use.
Defaults to MethodChannelLocation.
Implementation
static LocationPlatform get instance => _instance;
set
instance
(LocationPlatform instance)
Platform-specific implementations 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;
}