getNavigationChannel

().

setInitialRoute

"your/route/here"

);

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

flutterEngine

getDartExecutor

().

executeDartEntrypoint

DartEntrypoint

createDefault

()

);

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

FlutterEngineCache

getInstance

()

put

"my_engine_id"

flutterEngine

);

class

MyApplication

Application

()

lateinit

var

flutterEngine

FlutterEngine