instance property
VisionBarcodeScannerPlatform
get
instance
The default instance of VisionBarcodeScannerPlatform to use.
Defaults to MethodChannelVisionBarcodeScanner.
Implementation
static VisionBarcodeScannerPlatform get instance => _instance;
set
instance
(VisionBarcodeScannerPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends VisionBarcodeScannerPlatform when they register themselves.
Implementation
static set instance(VisionBarcodeScannerPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}