EventStreamMessage class final
An Event Stream message.
Constructors
-
EventStreamMessage({required List<
EventStreamHeader> headers, required Uint8List payload}) -
Creates an EventStreamMessage with a given headers and payload.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ List<
EventStreamHeader> -
The message headers.
final
- payload → Uint8List
-
The message payload.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getHeaderValue(
String name) → dynamic -
Returns the value of the header with the specified
name
ornull
if there is no such header. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited