RequestMethod enum
Represents the different HTTP request methods supported by the application.
Each value corresponds to a standard HTTP method, allowing for clear and consistent representation of HTTP operations.
Values
- GET → const RequestMethod
-
The HTTP GET method, typically used to retrieve data from a server.
- POST → const RequestMethod
-
The HTTP POST method, commonly used to send data to a server to create new resources.
- PUT → const RequestMethod
-
The HTTP PUT method, often used to update or replace existing resources on a server.
- PATCH → const RequestMethod
-
The HTTP PATCH method, used for partial updates to existing resources on a server.
- DELETE → const RequestMethod
-
The HTTP DELETE method, used to remove resources from a server.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
RequestMethod> - A constant List of the values in this enum, in order of their declaration.