Skip to content

Commit

Permalink
feat: allow the user to complete the wizard flow
Browse files Browse the repository at this point in the history
  • Loading branch information
sappo authored and spydon committed Feb 1, 2024
1 parent f8b0cd4 commit 25dbc02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/wizard_router/lib/src/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ class WizardController extends SafeChangeNotifier {
});
}

/// Requests the wizard to complete.
void complete() {
_flowController.complete();
}

/// Requests the wizard to show the previous page. Optionally, `result` can be
/// returned to the previous page.
Future<void> back<T extends Object?>([T? result]) async {
Expand Down

0 comments on commit 25dbc02

Please sign in to comment.