Event class

Event is the abstraction for every event that can be ingested by a handler.

Note is currently not supported to register your own events here.

Constructors

Event()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

deregisterEvent<T>() → dynamic
Deregisters an event.
exists<T>() → dynamic
Checks if a type of event is already registered.
fromHandler<T>(Type type, Map<String, dynamic> json) → dynamic
Creates a new event from a handler type with the NextInvocation.response.
registerEvent<T>(dynamic func) → dynamic
Registers an event.
value<T>() → dynamic
Returs the value of a registered event. It is null if no such event has been registered.