popAndPushWidget<T extends Object?> method

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

Implementation

Future<T?> popAndPushWidget<T extends Object?>(Widget routeWidget,
    {T? result,
    Map<String, dynamic>? arguments,
    PageParameter? pageParameter}) {
  pop<T>(result);
  return push<T>(routeWidget,
      arguments: arguments, pageParameter: pageParameter);
}