CollectionEventList class
class CollectionEventList implements EventListenerList { List listeners; CollectionEventList() { listeners = []; } CollectionEventList add(fn, {bool useCapture}) { listeners.add(fn); return this; } bool dispatch(CollectionEvent event) { listeners.forEach((fn) {fn(event);}); return true; } }
Implements
Constructors
new CollectionEventList() #
CollectionEventList() { listeners = []; }
Properties
List listeners #
List listeners;
Methods
CollectionEventList add(fn, [bool useCapture]) #
CollectionEventList add(fn, {bool useCapture}) { listeners.add(fn); return this; }
bool dispatch(CollectionEvent event) #
bool dispatch(CollectionEvent event) { listeners.forEach((fn) {fn(event);}); return true; }
EventListenerList remove(EventListener handler, [bool useCapture]) #
inherited from EventListenerList
EventListenerList remove(EventListener handler, [bool useCapture]);