@pragma

'vm:entry-point'

void

myOtherEntrypoint

()

...

};

Dart library

In addition to specifying a Dart function, you can specify an entrypoint
function in a specific file.

For instance the following runs myOtherEntrypoint()
in lib/other_file.dart instead of main() in lib/main.dart:

Swift

Objective-C

flutterEngine

run

withEntrypoint

"myOtherEntrypoint"

libraryURI

"other_file.dart"

flutterEngine

runWithEntrypoint

@"myOtherEntrypoint"

libraryURI

@"other_file.dart"

];

Route