forward method
Implementation
Future<void> forward() async {
if (_historyIndex < navigationHistory.val.length - 1) {
_historyIndex++;
final entry = navigationHistory.val[_historyIndex];
await toNamed(entry.state.name,
params: entry.state.params, query: entry.state.query);
}
}