route<T> static method
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);
}