instance property

MoguaPlatform get instance

The default instance of MoguaPlatform to use.

Defaults to MethodChannelMogua.

Implementation

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

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

Implementation

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