instance property

BarcodeReaderPlatform get instance

The default instance of BarcodeReaderPlatform to use.

Defaults to MethodChannelBarcodeReader.

Implementation

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

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

Implementation

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