transition method

NyRouterRoute transition(
  1. PageTransitionType transition
)

Add a transition to the route.

Implementation

NyRouterRoute transition(PageTransitionType transition) {
  this.pageTransitionType = transition;
  NyNavigator.instance.router.updateRoute(this);
  return this;
}