RequestMethod class
RequestMethod is a class that contains information about the request method.
Constructors
- RequestMethod(String requestMethod)
-
RequestMethod is a constructor that creates a new RequestMethod object.
const
- RequestMethod.all()
-
all is a constructor that creates a new RequestMethod object with the request method set to all.
const
- RequestMethod.delete()
-
delete is a constructor that creates a new RequestMethod object with the request method set to
DELETE
.const - RequestMethod.get()
-
get is a constructor that creates a new RequestMethod object with the request method set to
GET
.const - RequestMethod.options()
-
options is a constructor that creates a new RequestMethod object with the request method set to
OPTIONS
.const - RequestMethod.patch()
-
patch is a constructor that creates a new RequestMethod object with the request method set to
PATCH
.const - RequestMethod.post()
-
post is a constructor that creates a new RequestMethod object with the request method set to
POST
.const - RequestMethod.put()
-
put is a constructor that creates a new RequestMethod object with the request method set to
PUT
.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- requestMethod → String
-
requestMethod is a String that contains the request method.
final
- 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited