popUntilRoot method

void popUntilRoot([
  1. Object? result
])

Pops all routes until there is only one left.

Implementation

void popUntilRoot([Object? result]) {
  _key.currentState?.popUntilWithResult((route) => route.isFirst, result);
}