List<Document> getItems(page) { return items != null ? items?.map((pointer) => page.page[pointer!.getReference()!] as Document).toList() as List<Document> : List<Document>.empty(); }