instance property

MephistoPlatform instance

The default instance of MephistoPlatform to use.

Defaults to MethodChannelMephisto.

Implementation

static MephistoPlatform get instance => _instance;
void instance=(MephistoPlatform instance)

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

Implementation

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