RouteDefinition.from constructor

RouteDefinition.from(
  1. ConstantReader annotation
)

Implementation

factory RouteDefinition.from(ConstantReader annotation) {
  return RouteDefinition(
      uri: annotation.get("uri"),
      widgetType: annotation.get("widgetType"),
      returns: annotation.get("returns"),
      ctor: annotation.get("ctor"),
      handler: annotation.get("handler"),
      params: annotation.get("params"),
      name: annotation.get("name"));
}