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