ScannerController constructor
- int id,
- ValueChanged<
ScanResult> onResultCallback
Implementation
ScannerController(int id, this.onResultCallback)
: _channel = MethodChannel('com.qr.scanner.view_$id') {
_channel.setMethodCallHandler(_handleMessages);
}