instance property

WaimaiPluginPlatform get instance

The default instance of WaimaiPluginPlatform to use.

Defaults to MethodChannelWaimaiPlugin.

Implementation

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

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

Implementation

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