instance property

PengPlatform get instance

The default instance of PengPlatform to use.

Defaults to MethodChannelPeng.

Implementation

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

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

Implementation

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