`result` should change with each `SetState()` in `_onQRViewCreated(QRViewController controller))`, not `qrText`. `qrText` isn't defined!