diff --git a/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt b/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt index 64caaa1..b3b6e70 100644 --- a/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt +++ b/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt @@ -136,7 +136,7 @@ class QRView(private val registrar: PluginRegistry.Registrar, id: Int) : } - override fun onMethodCall(call: MethodCall?, result: MethodChannel.Result?) { + override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) { when(call?.method){ "checkAndRequestPermission" -> { checkAndRequestPermission(result)