resetAndPush<E> method
Keep pop until the history stack runs out, then push routeQuery
.
The method of page transition can be specified with transitionQuery
.
ヒストリーのスタックがなくなるまでpopし続けた後routeQuery
をpushします。
ページ遷移の方法をtransitionQuery
で指定可能です。
Implementation
Future<E?> resetAndPush<E>(
RouteQuery routeQuery, [
TransitionQuery? transitionQuery,
]) {
var index = _pageStack.length - 1;
while (index >= 0) {
final container = _pageStack.removeAt(index);
container.completer.complete(null);
index -= 1;
}
return push<E>(routeQuery, transitionQuery);
}