instance property

MovaPlatform get instance

The default instance of MovaPlatform to use.

Defaults to MethodChannelMova.

当前使用的 MovaPlatform 实例;默认为 MethodChannelMova。

Implementation

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

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

各平台实现在注册时,应把继承自 MovaPlatform 的自有类赋给它。

Implementation

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