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