Method enum

Represents a REST request verb.

Inheritance
Available extensions

Values

delete → const Method

DELETE request, includes a URI and headers.

Deletes data on the server.

get → const Method

GET request, includes a URI and headers.

Used to retrieve data from the server.

HEAD request, includes a URI and headers.

Retrieves headers for a request.

patch → const Method

PATCH request, includes a URI, headers, body, and encoding.

Modifies an existing record on the server.

post → const Method

POST request, includes a URI, headers, body, and encoding.

Creates new data on the server.

put → const Method

PUT request, includes a URI, headers, body, and encoding.

Updates or replaces existing data on the 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<Method>
A constant List of the values in this enum, in order of their declaration.