pushAndPop method

void pushAndPop(
  1. BuildContext context
)

Push and pop the current route

Implementation

void pushAndPop(BuildContext context) {
  Navigator.of(context).pop();
  push(context);
}