runRedirect method

RouteSettings? runRedirect(
  1. String? route
)

Implementation

RouteSettings? runRedirect(String? route) {
  RouteSettings? to;
  for (final element in _getMiddlewares()) {
    to = element.redirect(route);
    if (to != null) {
      break;
    }
  }
  Get.log('Redirect to $to');
  return to;
}