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

hashCode int
The hash code for this object. [...]
read-only, inherited
name String
The name of the method
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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
Method._(name: 'DELETE')
get → const Method
The GET method
Method._(name: 'GET')
The HEAD method
Method._(name: 'HEAD')
options → const Method
The OPTIONS method
Method._(name: 'OPTIONS')
patch → const Method
The PATCH method
Method._(name: 'PATCH')
post → const Method
The POST method
Method._(name: 'POST')
put → const Method
The PUT method
Method._(name: 'PUT')
values → const Map<String, Method>
A constant Map of the methods
{'HEAD' : head, 'GET' : get, 'POST' : post, 'PUT' : put, 'PATCH' : patch, 'DELETE' : delete, 'OPTIONS' : options}