instance property

MiraiVisionPlatform get instance

The default instance of MiraiVisionPlatform to use.

Defaults to MethodChannelMiraiVision.

Implementation

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

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

Implementation

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