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

override

fun

onCreate

()

super

onCreate

()

// Instantiate a FlutterEngine.

flutterEngine

FlutterEngine

this

// Configure an initial route.

flutterEngine