Route class
The Route class is used to define the routes of the application.
- Implemented types
- Implementers
Constructors
-
Route({required String path, required HttpMethod method, Map<
String, Type> queryParameters = const {}, List<Metadata> metadata = const []}) -
The Route constructor is used to create a new instance of the Route class.
const
-
Route.delete(String path, {List<
Metadata> metadata = const []}) -
The Route.delete factory constructor is used to create a new instance of the Route class with the DELETE method.
factory
-
Route.get(String path, {List<
Metadata> metadata = const []}) -
The Route.get factory constructor is used to create a new instance of the Route class with the GET method.
factory
-
Route.patch(String path, {List<
Metadata> metadata = const []}) -
The Route.patch factory constructor is used to create a new instance of the Route class with the PATCH method.
factory
-
Route.post(String path, {List<
Metadata> metadata = const []}) -
The Route.post factory constructor is used to create a new instance of the Route class with the POST method.
factory
-
Route.put(String path, {List<
Metadata> metadata = const []}) -
The Route.put factory constructor is used to create a new instance of the Route class with the PUT method.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ List<
Metadata> -
The metadata getter is used to get the List of Metadata of the route.
final
- method → HttpMethod
-
The HTTP method of the route.
final
- path → String
-
The path of the route.
final
-
queryParameters
→ Map<
String, Type> -
The query parameters of the route.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → int?
-
The version property contains the version of the route.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited