No, it is not possible . Dart and Java are different languages that both run in their own VM. You can however invoke java via the Process class. There is also a Java to Dart plugin that is in an experimental phase.
Read moreCan we use Android library in Flutter?
With Platform Channels, as long as native can do, Flutter can also . In the above example, background thread, you can connect to native Android/iOS, use thread as normal, then return data to the Flutter app.22 Eki 2019
Read moreCan Flutter use native libraries?
You can directly call native Android and iOS SDKs of Tokbox chat app from your Flutter application — wherein the UI will be driven by Tokbox SDKs. Since this approach uses native UIs of each platform, the app developer is devoid of any responsibility to create working UIs on both the Android and iOS platforms.
Read moreHow do you use libraries in Flutter?
Adding a package dependency to an app
Read moreHow do I add native module to Flutter?
Creating Flutter module
Read moreCan Flutter use Java libraries?
Yes you can . It is helpful if you are using SDK that gives you native code for both Android and iOS, otherwise it will be difficult.
Read more