popAll method

bool popAll()

Implementation

bool popAll() {
  var canPop = false;
  if (eztoNavigatorKey.currentContext != null) {
    canPop = Navigator.maybeOf(eztoNavigatorKey.currentContext!)?.canPop() ??
        false;
    Navigator.maybeOf(eztoNavigatorKey.currentContext!)
        ?.popUntil((route) => route.isFirst);
  }
  return canPop;
}