else

result

notImplemented

()

Start by opening the Android host portion of your Flutter app
in Android Studio:

Start Android Studio

Select the menu item File > Open…

Navigate to the directory holding your Flutter app,
and select the android folder inside it. Click OK.

Open the MainActivity.java file located in the java folder in the
Project view.

Next, create a MethodChannel and set a MethodCallHandler
inside the configureFlutterEngine() method.
Make sure to use the same channel name as was used on the
Flutter client side.

import

androidx.annotation.NonNull

import

io.flutter.embedding.android.FlutterActivity

import

io.flutter.embedding.engine.FlutterEngine

import

io.flutter.plugin.common.MethodChannel