instance property

The default instance of VideoPlayerPlatform to use.

Platform-specific plugins should override this with their own platform-specific class that extends VideoPlayerPlatform when they register themselves.

Defaults to MethodChannelVideoPlayer.

Implementation

static VideoPlayerPlatform get instance => _instance;
void instance=(VideoPlayerPlatform instance)

Implementation

static set instance(VideoPlayerPlatform instance) {
  if (!instance.isMock) {
    try {
      instance._verifyProvidesDefaultImplementations();
    } on NoSuchMethodError catch (_) {
      throw AssertionError(
          'Platform interfaces must not be implemented with `implements`');
    }
  }
  _instance = instance;
}