Handler for events dispatched from an active Server-Sent Events stream. A stream ends with exactly one terminal callback: onError when it failed, onClosed when it ended cleanly. Neither follows a cancel.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
onClosed(
) → void -
onError(
Object error) → void -
onEvent(
SseEvent event) → void -
onOpen(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited