// Configure an initial route.

flutterEngine

navigationChannel

setInitialRoute

"your/route/here"

);

// Start executing Dart code to pre-warm the FlutterEngine.

flutterEngine

dartExecutor

executeDartEntrypoint

DartExecutor

DartEntrypoint

createDefault

()

// 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.