home method
void
home()
Requests the wizard to show the first page.
Implementation
void home() {
if (state.length <= 1) {
throw WizardException(
'`Wizard.home()` called from the first route ${state.last.name}');
}
_updateState((state) {
final copy = List<WizardRouteSettings>.of(state);
return copy..replaceRange(1, state.length, []);
});
}