instance property
IpLocationPlatform
get
instance
The default instance of IpLocationPlatform to use.
Defaults to MethodChannelIpLocation.
Implementation
static IpLocationPlatform get instance => _instance;
set
instance
(IpLocationPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends IpLocationPlatform when they register themselves.
Implementation
static set instance(IpLocationPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}