class

MyApplication

extends

Application

@Override

public

void

onCreate

()

super

onCreate

();

// Instantiate a FlutterEngine.

flutterEngine

new

FlutterEngine

this

);

// Configure an initial route.

flutterEngine

getNavigationChannel

().

setInitialRoute

"your/route/here"

);

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

flutterEngine

getDartExecutor

().

executeDartEntrypoint

DartEntrypoint

createDefault