The Declarative page builder it gives you the state and take the pages to show
typedef DeclarativeBuilder = List<QDRoute> Function();