Event class abstract

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.

Implementers

Constructors

Event()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

deregisterEvent<T>() → void
Deregisters an event.
exists<T>() bool
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>(T func(Map<String, dynamic>)) → void
Registers an event.
value<T extends Event>() → T Function(Map<String, dynamic>)?
Returs the value of a registered event. It is null if no such event has been registered.