List<Page> getPages() { assert(state.route != null, 'tried to build pages before setting a route'); return getPagesFor(state.route); }