popCurrent<T> abstract method

void popCurrent<T>(
  1. BuildContext context, {
  2. required Widget currentPage,
  3. T? popResult,
})

Pop the current page and all of its sub-routes.

Prefer this over Navigator.of(context).pop for all participators widget.

Implementation

void popCurrent<T>(BuildContext context,
    {required Widget currentPage, T? popResult});