instance property

CapturePlatform get instance

The default instance of CapturePlatform to use.

Defaults to MethodChannelCapture.

Implementation

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

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

Implementation

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