route<T> static method

Route<T> route<T>(
  1. Widget next
)

Creates a route for the given next widget using the configured animation style.

The animation style is determined by pushRouteAnimation.

Implementation

static Route<T> route<T>(Widget next) {
  return pushRouteAnimation == PushRouteAnimation.defaultAnimation
      ? CoolUtil.defaultRoute(next)
      : CoolUtil.animatedRoute(next);
}