instance property

DualCameraPlatform get instance

The default instance of DualCameraPlatform to use.

Defaults to MethodChannelDualCamera.

Implementation

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

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

Implementation

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