instance property

ScannerPlatform get instance

The default instance of ScannerPlatform to use.

Defaults to MethodChannelScanner.

Implementation

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

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

Implementation

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