Pop until predicate.
static void backUntil(bool Function(Route<dynamic>) predicate) => navigatorKey.currentState?.popUntil(predicate);