Convert java to flutter. Both Kotlin and Java get compiled to the same bytecode.