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