EventData class
Represents an event to be written to a stream
Constructors
Properties
- contentType → String
-
The Content-Type of data.
Valid values are 'application/json' and 'application/octet-stream'.
final
-
data
→ UnmodifiableListView<
int> -
The raw bytes of the event data.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ UnmodifiableListView<
int> -
The raw bytes of the event metadata.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The name of the event type.
It is strongly recommended that these
use lowerCamelCase if projections are to be used.
final
- uuid → UuidValue
-
The
UuidValue
of the event, used as part of the idempotent write check.no setter
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
Static Methods
-
toStreamFromBinary(
String eventType, List< int> data, {UuidV4? uuid, List<int> metadata = const []}) → Stream<EventData> - Create Stream from single event with json data
-
toStreamFromJson(
String eventType, dynamic data, {UuidV4? uuid, Map< String, dynamic> metadata = const <String, dynamic>{}}) → Stream<EventData> - Create Stream from single event with json data