match method
Implementation
List<RouteHistoryItem> match(String route) {
var results = <RouteHistoryItem>[];
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 [];
}