EventDTO<T> class abstract

One event: its topic, the data and the call arguments.

Implementers

Constructors

EventDTO(T data, {Topic? topic, List<String>? paths, Map<String, String>? arguments, String? separator})
factory

Properties

arguments → Map<String, String>?
no setter
data → T
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
topic → Topic
no setter

Methods

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.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

create<T>(T data, {List<String>? paths, String? separator, Map<String, String>? arguments}) → EventDTO<T>