pushNext<T> abstract method
Push the next page in the array
currentPage is needed to obtain the correct previous and next route in the array.
ex. pushNext(context currentPage: widget);
Implementation
Future<T?> pushNext<T>(BuildContext context, {required Widget currentPage});