EventManager class

EventManager handles all event notifications from its decendants

An EventManager can broadcast events and listen for events to handle There is an EventManager wrapped around the Framework so every widget has at least one ancestor EventManager

Constructors

EventManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
listeners HashMap<EventTypes, List<OnEventCallback>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

broadcast(WidgetModel source, Event event) → void
Notifies listeners about an Event
execute(WidgetModel source, String event) Future
Executes and Event
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(EventTypes type, OnEventCallback callback, {int? priority}) → dynamic
Register a listener on an event type
remove(EventTypes type, OnEventCallback callback) → void
Remove a listener on an event type
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

of(WidgetModel model) IEventManager?
Gets the nearest EventManager ancestor from this widget