Communication between Flutter and modules written in native code is done in a seamless way through platform-channels . You can define your own channels and methods, both with unique string identifiers and pass information from one side to the other. You can check the project here.
Read moreHow does Flutter determine platform?
How to Check Platform in Flutter
Read moreHow do you write a platform-specific code in Flutter?
Writing custom platform-specific code
Read moreWhat are platform channels?
Overview. Overall the Platform Channel represents a way to connect native code with the Flutter app (Dart) . It can be used to implement any Flutter missing functionality using a platform-specific code (plugins) and call any APIs whether available in Java or Kotlin code on Android, or in Objective-C or Swift code on iOS …
Read moreWhat is platform Channel Flutter?
Overview. Overall the Platform Channel represents a way to connect native code with the Flutter app (Dart) . It can be used to implement any Flutter missing functionality using a platform-specific code (plugins) and call any APIs whether available in Java or Kotlin code on Android, or in Objective-C or Swift code on iOS …
Read more