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