popUntilAndPushWidget<T extends Object?> method

Future<T?> popUntilAndPushWidget<T extends Object?>(
  1. PagePredicate predicate,
  2. Widget routeWidget, {
  3. Map<String, dynamic>? arguments,
  4. PageParameter? pageParameter,
})

Implementation

Future<T?> popUntilAndPushWidget<T extends Object?>(
    PagePredicate predicate, Widget routeWidget,
    {Map<String, dynamic>? arguments, PageParameter? pageParameter}) {
  _popUntil(predicate);
  return push<T>(routeWidget, pageParameter: pageParameter);
}