selectItem method
Selects the first item whose alias equals alias.
Returns false if the alias is unknown or the item has no page.
Implementation
bool selectItem(String alias) {
for (final item in _items) {
if (item.alias == alias && item.page != null) {
page = item.page;
return true;
}
}
return false;
}