instance property

The default instance of ConnectivityPlatform to use.

Defaults to MethodChannelConnectivity.

Implementation

static ConnectivityPlatform get instance => _instance;
void instance=(ConnectivityPlatform 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;
}