pushAndPop method

void pushAndPop(
  1. BuildContext context
)

Push and pop the current route

Implementation

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