popUntil static method

void popUntil(
  1. BuildContext context,
  2. String routeName
)

Pop routes until routeName is at the top of the stack.

Implementation

static void popUntil(BuildContext context, String routeName) =>
    Navigator.popUntil(context, ModalRoute.withName(routeName));