instance property

CaptureBoxPlatform get instance

The default instance of CaptureBoxPlatform to use.

Defaults to MethodChannelCaptureBox.

Implementation

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

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

Implementation

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