How to pass arguments from Flutter to Kotlin?

Posted by Jennifer | Updated on

If you want to pass arguments from Flutter to Kotlin? Use the following example.

Flutter

On the Flutter side, you can pass arguments by including them as a map in the invokeMethod call.

Kotlin

On the Kotlin side you can get the parameters by casting call.arguments as a Map or getting a particular argument from call.argument().


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers