replace<T extends Object?> method
Requests the wizard to replace the current page with the next one.
Optionally, arguments
can be passed to the next page.
onPressed: () => Wizard.of(context).replace(arguments: something),
Implementation
Future<T?> replace<T extends Object?>({Object? arguments}) =>
widget._controller.replace(arguments: arguments);