instance property

MobileScannerPlatform get instance

The default instance of MobileScannerPlatform to use.

Defaults to MethodChannelMobileScanner.

Implementation

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

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

Implementation

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