Java

Kotlin

FlutterFragment

flutterFragment

FlutterFragment

withNewEngine

()

dartEntrypoint

"mySpecialEntrypoint"

build

();

val

flutterFragment

FlutterFragment

withNewEngine

()

dartEntrypoint

"mySpecialEntrypoint"

build

()

The FlutterFragment configuration results in the execution
of a Dart entrypoint called mySpecialEntrypoint().
Notice that the parentheses () are
not included in the dartEntrypoint String name.

Control FlutterFragment’s render mode

Java

Kotlin

// With a new FlutterEngine.

FlutterFragment

flutterFragment