import 'package:flutter/services.dart'; const _channel = MethodChannel('com.rapollo/qr_scanner'); Future decodeQRFromBytes(Uint8List bytes) async { try { final result = await _channel.invokeMethod('decodeQRFromBytes', bytes); return result; } on PlatformException { return null; } }