popToRoot method

Future<bool> popToRoot()

Implementation

Future<bool> popToRoot() {
  if (_stack.isEmpty) {
    return SynchronousFuture(false);
  }
  _stack.removeRange(1, _stack.length);
  _update();
  return SynchronousFuture(true);
}