Route.put constructor

Route.put(
  1. String path, {
  2. List<Metadata> metadata = const [],
})

The Route.put factory constructor is used to create a new instance of the Route class with the PUT method.

Implementation

factory Route.put(String path, {List<Metadata> metadata = const []}) {
  return Route(path: path, method: HttpMethod.put, metadata: metadata);
}