FlutterEngine

flutterEngine

@Override

public

void

onCreate

()

super

onCreate

();

// Instantiate a FlutterEngine.

flutterEngine

new

FlutterEngine

this

);

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

flutterEngine

getDartExecutor

().

executeDartEntrypoint

DartEntrypoint

createDefault

()

);

// Cache the FlutterEngine to be used by FlutterActivity.

FlutterEngineCache

getInstance

()

put

"my_engine_id"