instance property

XMediaInfoPlatform get instance

The default instance of XMediaInfoPlatform to use.

Defaults to MethodChannelXMediaInfo.

Implementation

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

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

Implementation

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