// Cache the FlutterEngine to be used by FlutterActivity or FlutterFragment.

FlutterEngineCache

getInstance

()

put

"my_engine_id"

flutterEngine

By setting the initial route of the navigation channel, the associated
FlutterEngine displays the desired route upon initial execution of the
runApp() Dart function.

Changing the initial route property of the navigation channel
after the initial execution of runApp() has no effect.
Developers who would like to use the same FlutterEngine
between different Activitys and Fragments and switch
the route between those displays need to setup a method channel and
explicitly instruct their Dart code to change Navigator routes.

Display a splash screen