EventManager class abstract

An event manager to register and call callback functions

Constructors

EventManager.new()

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

emit<T>(String event, T data) → void
Emit an event
on<T>(String event, dynamic callback(T event)) → void
Register a callback function for an event
remove(String event) → void
Remove a callback function for an event