instance property

YyPlatform get instance

The default instance of YyPlatform to use.

Defaults to MethodChannelYy.

Implementation

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

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

Implementation

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