FlutterEngineGroupOptions
@interface FlutterEngineGroupOptions : NSObject
Options that control how a FlutterEngine should be created.
-
The name of a top-level function from a Dart library. If this is FlutterDefaultDartEntrypoint (or nil); this will default to
main()
. If it is not the app’s main() function, that function must be decorated with@pragma(vm:entry-point)
to ensure themethod is not tree-shaken by the Dart compiler.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *entrypoint;
-
The URI of the Dart library which contains the entrypoint method. If nil, this will default to the same library as the
main()
function in the Dart program.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *libraryURI;
-
The name of the initial Flutter
Navigator
Route
to load. If this is FlutterDefaultInitialRoute (or nil), it will default to the “/” route.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *initialRoute;
-
Arguments passed as a list of string to Dart’s entrypoint function.
Declaration
Objective-C
@property (nonatomic, retain, nullable) NSArray<NSString *> *entrypointArgs;