Wizard constructor

const Wizard({
  1. Key? key,
  2. String? initialRoute,
  3. Map<String, WizardRoute>? routes,
  4. List<NavigatorObserver> observers = const [],
  5. Object? userData,
  6. 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');