EventDTO<T> class abstract

Implementers

Constructors

EventDTO(T data, {Topic? topic, String? target, String? path, Map<String, String>? arguments, String? fragment, Completer? completer})
factory

Properties

completer → Completer?
completed with null after call handler, if not completed in handler. If the handler throws, the completer is completed with that error.
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, {String? target, String? path, Map<String, String>? arguments, String? fragment, Completer? completer}) → EventDTO<T>