instance property

The active platform implementation.

Implementation

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

Replaces the active platform implementation.

Implementations must extend this class or use MockPlatformInterfaceMixin in tests.

Implementation

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