HttpRoutePart constructor

HttpRoutePart(
  1. String name,
  2. [List<HttpRouteParam> params = const []]
)

Create a new HttpRoutePart.

HTTP route parts are made up of an identifier (such as /users) and, optionally, one or more parameters (such as the id of a user).

Implementation

HttpRoutePart(this.name, [this.params = const []]);