instance property

WifiToolPlatform get instance

The default instance of WifiToolPlatform to use.

Defaults to MethodChannelWifiTool.

Implementation

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

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

Implementation

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