push<E> method
Passing router
will take you to a new page.
The method of page transition can be specified with transitionQuery
.
You can wait until the page is destroyed by the pop
method with the return value Future.
In doing so, it can also receive the object passed by pop
.
router
を渡すことにより新しいページに遷移します。
ページ遷移の方法をtransitionQuery
で指定可能です。
戻り値のFutureでpop
メソッドでページが破棄されるまで待つことができます。
また、その際pop
で渡されたオブジェクトを受け取ることができます。
Implementation
Future<E?> push<E>(
AppRouter? router, [
TransitionQuery? transitionQuery,
]) {
if (router == null) {
return Future.value();
}
return router.push<E>(
this,
transitionQuery,
);
}