getRouteStack method
Returns the list of Routes represented as a stack of routes currently push by Navigator.
Head and tail of list are bottom and top of stack respectively.
Implementation
UnmodifiableListView<Route> getRouteStack() {
final stack = this.routeStack.reversed.toList();
return UnmodifiableListView(stack);
}