pop static method

dynamic pop(
  1. BuildContext context, {
  2. int sceneCount = 1,
})

Implementation

static pop(BuildContext context, {int sceneCount = 1}) {
  int popScene = sceneCount;
  Navigator.popUntil(context, (route) {
    return popScene-- <= 0;
  });
}