instance property

EchoWifiLockPlatform get instance

The default instance of EchoWifiLockPlatform to use.

Defaults to MethodChannelEchoWifiLock.

Implementation

static EchoWifiLockPlatform get instance => _instance;
set instance (EchoWifiLockPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends EchoWifiLockPlatform when they register themselves.

Implementation

static set instance(EchoWifiLockPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}