replaceLastWith method
Implementation
NavigationStack<T> replaceLastWith(AppPageNode<T> page) {
final res = [...pageNodesStack]
..removeLast()
..add(page);
return NavigationStack(res);
}
NavigationStack<T> replaceLastWith(AppPageNode<T> page) {
final res = [...pageNodesStack]
..removeLast()
..add(page);
return NavigationStack(res);
}