instance property

YodosdkPlatform get instance

The default instance of YodosdkPlatform to use.

Defaults to MethodChannelYodosdk.

Implementation

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

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

Implementation

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