instance property

DownmediaPlatform get instance

The default instance of DownmediaPlatform to use.

Defaults to MethodChannelDownmedia.

Implementation

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

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

Implementation

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