Method class Null safety
The class that contains all HTTP methods
Constructors
- Method.fromValue(String value)
-
Returns the method class from the name of the method
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
override
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
Constants
- delete → const Method
-
The DELETE method
const Method._(name: 'DELETE')
- get → const Method
-
The GET method
const Method._(name: 'GET')
- head → const Method
-
The HEAD method
const Method._(name: 'HEAD')
- options → const Method
-
The OPTIONS method
const Method._(name: 'OPTIONS')
- patch → const Method
-
The PATCH method
const Method._(name: 'PATCH')
- post → const Method
-
The POST method
const Method._(name: 'POST')
- put → const Method
-
The PUT method
const Method._(name: 'PUT')
-
values
→ const List<
Method> -
A constant List of the values in this enum, in order of their declaration
const [head, get, post, put, patch, delete, options]