An example Flutter project that uses platform channels to make a call Java native code from Flutter app. In Java side a palindrome checker is implemented and called by the Flutter app.
Medium article which explains about platform channels: 👉 https://link.medium.com/aatTCt2Dtib