// FlutterDefaultDartEntrypoint is the same as nil, which will run main().

flutterEngine

runWithEntrypoint

FlutterDefaultDartEntrypoint

initialRoute:

@"/onboarding"

];

This code sets your dart:ui’s window.defaultRouteName
to "/onboarding" instead of "/".

Alternatively, to construct a FlutterViewController directly without pre-warming
a FlutterEngine:

Swift

Objective-C

let

flutterViewController

FlutterViewController

project

nil

initialRoute

"/onboarding"

nibName

nil

bundle

nil

FlutterViewController

flutterViewController

[[

FlutterViewController