HttpRoute_RouteRule constructor

HttpRoute_RouteRule({
  1. Iterable<HttpRoute_RouteMatch>? matches,
  2. HttpRoute_RouteAction? action,
})

Implementation

factory HttpRoute_RouteRule({
  $core.Iterable<HttpRoute_RouteMatch>? matches,
  HttpRoute_RouteAction? action,
}) {
  final $result = create();
  if (matches != null) {
    $result.matches.addAll(matches);
  }
  if (action != null) {
    $result.action = action;
  }
  return $result;
}