start with setting controller to accept only QR
MobileScannerController qrController = MobileScannerController(
formats: [BarcodeFormat.qrCode],
);
and you can check value prefix by using [string].startsWith('your-prefix')
like @SaifAlmajd answer