toRoute method

Route<R?> toRoute(
  1. P params
)

Implementation

Route<R?> toRoute(P params) {
  final AppRoute<R, P> self = this;
  final Route<R?> Function(String, P) creator =
      SunnyRouting.router.routeFactory.generate<R, P>(self, null, const Duration(milliseconds: 300), null);
  return creator(self.route, params);
}