Hipster MVChipster_routerRouterEvents

RouterEvents class

class RouterEvents implements Events {
  HashMap<String,RouterEventList> listener;
  RouterEvents() {
    listener = {};
  }

  RouterEventList operator [](String type) {
    listener.putIfAbsent(type, _buildListenerList);
    return listener[type];
  }

  _buildListenerList() => new RouterEventList();
}

Implements

Events

Constructors

new RouterEvents() #

RouterEvents() {
  listener = {};
}

Properties

HashMap<String, RouterEventList> listener #

HashMap<String,RouterEventList> listener;

Operators

RouterEventList operator [](String type) #

RouterEventList operator [](String type) {
  listener.putIfAbsent(type, _buildListenerList);
  return listener[type];
}