RouteWebSocket class final

WebSocket route class

Inheritance

Constructors

RouteWebSocket(String name, {required MiddlewareWebSocket? middlewareWebSocket})

Properties

acceptedMethods List<AcceptedMethods>?
finalinherited
guards List<MiddlewareNullable>
Middleware guards that run before the route handler.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isDynamic bool
Whether this route contains dynamic path segments (:param).
latefinalinherited
isHttpRoute bool
Whether this route handles HTTP requests via middleware.
no setterinherited
middleware Middleware?
finalinherited
middlewareWebSocket MiddlewareWebSocket?
finalinherited
name String
finalinherited
openApi OpenApiOperation?
Optional OpenAPI documentation for this operation (OpenAPI 3.x).
finalinherited
pathParameterNames List<String>
Names of path parameters (without the : prefix), in path order.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
versionCache int
no setterinherited

Methods

matchPath(String path) Map<String, String>?
Tries to match the given path against this route's pattern. Returns the extracted parameters if matched, or null if no match.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onUpdate() → void
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited