pop static method

void pop({
  1. int count = 1,
  2. Object? arguments,
})

关闭弹窗

Implementation

static void pop({int count = 1, Object? arguments}) {
  NavigatorState state = Navigator.of(HbRouter.key.currentContext!);
  while (count-- > 0) {
    if (state.canPop()) {
      state = state..pop(arguments);
    }
  }
}