Iam integrating FlutterActivity to a native Android app.
I have CustomFlutterActivity which inherits from FlutterActivity, which I want to launch using cached FlutterEngine.
This is the code from the documentation for how to do this:
startActivity(
FlutterActivity
.withNewEngine()
.build(currentActivity)
);
What I want to achieve is to launch my CustomFlutterActivity with my cached engine (and not a generic FlutterActivity as the documentation says)