instance property
QrcodeBarcodeScannerPlatform
get
instance
The default instance of QrcodeBarcodeScannerPlatform to use.
This defaults to the MethodChannelQrcodeBarcodeScanner implementation, which uses method channels to communicate with the native platform (iOS/Android).
Implementation
static QrcodeBarcodeScannerPlatform get instance => _instance;
set
instance
(QrcodeBarcodeScannerPlatform instance)
Allows platform-specific implementations to set their own instance.
Platform-specific implementations should call this method to register their own implementation when they initialize.
Implementation
static set instance(QrcodeBarcodeScannerPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}