Wizard constructor
const
Wizard({
- Key? key,
- String? initialRoute,
- Map<
String, WizardRoute> ? routes, - List<
NavigatorObserver> observers = const [], - Object? userData,
- WizardController? controller,
Creates an instance of a wizard. The routes
argument is required.
Implementation
const Wizard({
super.key,
this.initialRoute,
this.routes,
this.observers = const [],
this.userData,
this.controller,
}) : assert((routes == null) != (controller == null),
'Either routes or controller must be specified');