instance property

DdPlatform get instance

The default instance of DdPlatform to use.

Defaults to MethodChannelDd.

Implementation

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

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

Implementation

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