diff --git a/test/speech_to_text_test.dart b/test/speech_to_text_test.dart index 213f3f8c..3d1db5a9 100644 --- a/test/speech_to_text_test.dart +++ b/test/speech_to_text_test.dart @@ -72,7 +72,7 @@ void main() { break; case SpeechToText.listenMethod: listenInvoked = true; - listenLocale = methodCall.arguments; + listenLocale = methodCall.arguments["localeId"]; await speech.processMethodCall(MethodCall( SpeechToText.notifyStatusMethod, listeningStatusResponse)); return initResult;