Dispatcher class

Manages callback bindings and event emitting.

Implementers
Annotations
  • @JS()

Constructors

Dispatcher([Function failThrough])
factory

Properties

callbacks CallbackRegistry
getter/setter pair
failThrough Function
getter/setter pair
global_callbacks List<Function>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(String eventName, Function callback, [dynamic context]) → dynamic
bind_global(Function callback) → dynamic
emit(String eventName, [dynamic data, Metadata metadata]) Dispatcher
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unbind([String eventName, Function callback, dynamic context]) → dynamic
unbind_all() → dynamic
unbind_global([Function callback]) → dynamic

Operators

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