SseRouteHandlerSpec class
The SseRouteHandlerSpec class is used to define a Server-Sent Event (SSE) route handler specification.
- Inheritance
-
- Object
- RouteHandlerSpec<
Stream Function(SseContext)> - SseRouteHandlerSpec
Constructors
- SseRouteHandlerSpec(Route route, Stream handler(SseContext))
- The SseRouteHandlerSpec constructor is used to create a new instance of the SseRouteHandlerSpec class.
Properties
- handler → Stream Function(SseContext)
-
The handler property contains the handler function.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- route → Route
-
The route property contains the route information.
finalinherited
- 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