Hi, I am modernizing an Android app UI to use Flutter for screen design. My android app used the Google Nearby API to find local IOT devices. Since there doesn't seem to be a package yet for the Nearby API, I was trying to use MethodChannel to start discovery, and I am able to successfully invoke methods in Kotlin from Flutter. The problem is I now need to close the loop, and invoke Flutter methods from Kotlin Callback methods to pass data to show on the UI.
In this Wiki page
https://flutter.io/platform-channels/ it alludes to the fact that you can easily do the reverse "
Note: If desired, method calls can also be sent in the reverse direction, with the platform acting as client to methods implemented in Dart." But I am struggling to get it working. Can anyone point me at a code example of Java / Kotlin calling into Flutter?
Thanks in advance