diff --git a/windows/runner/flutter_window.cpp b/windows/runner/flutter_window.cpp index c7587af..740d932 100644 --- a/windows/runner/flutter_window.cpp +++ b/windows/runner/flutter_window.cpp @@ -198,7 +198,7 @@ bool FlutterWindow::OnCreate() { return; } result->Success(num); - } else if (call.method() == "readFile") { + } else if (call.method_name() == "readFile") { auto args = std::get_if(call.arguments()); auto fd = std::get_if(&args->at(0)); auto maxlen = std::get_if(&args->at(1));