resetAndPush<E> method

Future<E?> resetAndPush<E>(
  1. AppRouter? router, [
  2. TransitionQuery? transitionQuery
])

It keeps pop until the history stack runs out and then push itself.

The method of page transition can be specified with transitionQuery.

ヒストリーのスタックがなくなるまでpopし続けた後自身をpushします。

ページ遷移の方法をtransitionQueryで指定可能です。

Implementation

Future<E?> resetAndPush<E>(
  AppRouter? router, [
  TransitionQuery? transitionQuery,
]) {
  if (router == null) {
    return Future.value();
  }
  return router.resetAndPush<E>(
    this,
    transitionQuery,
  );
}