popCurrent<T> abstract method
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});