ScannerViewController constructor
ScannerViewController(
- int id
Implementation
ScannerViewController(int id) {
_channel =
MethodChannel('com.dynamsoft.flutter_qrcode_scanner/nativeview_$id');
_channel.setMethodCallHandler((call) async {
switch (call.method) {
case 'onDetected':
if (call.arguments != null) {
List<BarcodeResult> data = fromPlatformData(call.arguments as List);
_streamController.sink.add(data);
}
break;
}
});
}