pushNext<T> abstract method

Future<T?> pushNext<T>(
  1. BuildContext context, {
  2. required Widget currentPage,
})

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});