PATCH class final

Represents an HTTP PATCH route.

Use PATCH when partially updating a resource.

Example

final router = RouterBuilder()
  ..patch('/users/:id', (req) => patchUser(req));

This defines a PATCH route for /users/:id.

Inheritance

Constructors

PATCH(String path)
Represents an HTTP PATCH route.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
method HttpMethod
The HTTP method (e.g., GET, POST) that this route responds to.
finalinherited
path String
The URI path associated with this route.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

equalizedProperties() List<Object?>
Mixin-style contract for value-based equality, hashCode, and toString.
inherited
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