instance property

DyPlatform get instance

The default instance of DyPlatform to use.

Defaults to MethodChannelDy.

Implementation

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

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

Implementation

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