pop<T> method

void pop<T>([
  1. T? result
])

Implementation

void pop<T>([T? result]) async {
  if (canPop()) {
    _popAndOnResult(result);
    notify();
  }

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