instance property

VideoPlayerPlatform get instance

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;
set instance (VideoPlayerPlatform instance)

Implementation

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