instance property

MybasePlatform get instance

The default instance of MybasePlatform to use.

Defaults to MethodChannelMybase.

Implementation

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

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

Implementation

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