Method class Null safety

The class that contains all HTTP methods

This class is still work-in-progress and it is not been implemented already. Do not use this class for the moment.

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
const Method._(name: 'DELETE')
get → const Method
The GET method
const Method._(name: 'GET')
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]