Converts the stack items to Page instances to be used while building the actual Navigator
List<Page> pages({required BuildContext context});