Route constructor

const Route(
  1. String verb,
  2. String route
)

Create an annotation that routes requests matching verb and route to the annotated method.

Implementation

const Route(this.verb, this.route);