Hipster MVChipster_routerRouterEventList

RouterEventList class

class RouterEventList implements EventListenerList {
  List listeners;

  RouterEventList() {
    listeners = [];
  }

  RouterEventList add(EventListener handler, [bool useCapture]) {
    listeners.add(handler);
    return this;
  }

  bool dispatch(RouterEvent event) {
    listeners.forEach((fn) {fn(event);});
    return true;
  }
}

Implements

EventListenerList

Constructors

new RouterEventList() #

RouterEventList() {
  listeners = [];
}

Properties

List listeners #

List listeners;

Methods

RouterEventList add(EventListener handler, [bool useCapture]) #

RouterEventList add(EventListener handler, [bool useCapture]) {
  listeners.add(handler);
  return this;
}

bool dispatch(RouterEvent event) #

bool dispatch(RouterEvent event) {
  listeners.forEach((fn) {fn(event);});
  return true;
}

EventListenerList remove(EventListener handler, [bool useCapture]) #

inherited from EventListenerList
EventListenerList remove(EventListener handler, [bool useCapture]);