pushAndRemoveUntil static method

void pushAndRemoveUntil(
  1. BuildContext context,
  2. Widget page,
  3. RoutePredicate predicate, {
  4. Widget? current,
})

Implementation

static void pushAndRemoveUntil(
    BuildContext context, Widget page, RoutePredicate predicate,
    {Widget? current}) {
  Navigator.pushAndRemoveUntil(context,
      _getPT(current: current, page: page, context: context), predicate);
}