popAndPush static method

dynamic popAndPush(
  1. BuildContext context,
  2. Widget screen
)

Implementation

static popAndPush(BuildContext context, Widget screen) {
  goBack(context);
  return navigate(context, screen);
}