ScannerController constructor

ScannerController(
  1. int id,
  2. ValueChanged<ScanResult> onResultCallback
)

Implementation

ScannerController(int id, this.onResultCallback)
    : _channel = MethodChannel('com.qr.scanner.view_$id') {
  _channel.setMethodCallHandler(_handleMessages);
}