match method
Implementation
List<RouteHistoryItem<T>> match(String route) {
var results = <RouteHistoryItem<T>>[];
var found = false;
//todo: how far back to look?
for (var item in items.skip(1).take(3)) {
found = item.route == route;
if (!found && item.isPage) {
return [];
}
results.add(item);
if (found) {
return results;
}
}
return [];
}