getRouteHistory static method
Get the route history.
Implementation
static List<dynamic> getRouteHistory() {
List<Map<String, dynamic>> list = [];
List<Route<dynamic>> history =
NyNavigator.instance.router.getRouteHistory();
for (var route in history) {
dynamic data = route.settings.arguments;
if (data is ArgumentsWrapper) {
data = data.getData();
}
if (data is NyArgument) {
data = data.data;
}
list.add({
"name": route.settings.name,
"arguments": data,
"route": route,
});
}
return list;
}