EventDTOImpl<T> class

Implemented types

Properties

address → String
The stable address string.
no setteroverride
arguments ↔ Map<String, String>?
getter/setter pairoverride-getter
correlationId → String?
An optional id that ties an event and every event caused by it together.
final
data ↔ T
getter/setter pairoverride-getter
hashCode → int
The hash code for this object.
no setteroverride
key → EventKey<T>
The typed key: address plus local type.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({T? data, EventKey<T>? key, Map<String, String>? arguments, String? correlationId}) → EventDTO<T>
A copy with some fields replaced. A null argument keeps the current value, so a correlation id cannot be cleared with this method.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Event representation for logs and serialization. Data is returned as is: encoding is up to the caller, so an arbitrary object in data no longer breaks the method.
override
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson<T>(Map<String, dynamic> json, {EventKey<T>? key, T dataConverter(String address, dynamic data)?}) → EventDTO<T>