pop method

void pop([
  1. Object? result
])

Implementation

void pop([Object? result]) {
  if (canPop()) {
    _popAndOnResult(result);
    notify();
  }

  // 抽屉栈:栈为空时自动关闭抽屉
  if (isDrawerStack &&
      _pages.length <= 1 &&
      _drawerConfig?.autoClose == true) {
    closeDrawerStack();
  }
}