addListener method

void addListener(
  1. ControllerSubscriber<T> listener
)

Adds a listener to the list of listeners.

This method is a wrapper around ControllerWatcher.addListener. listener is the listener to be added.

Implementation

void addListener(ControllerSubscriber<T> listener) {
  ControllerWatcher<T>().addListener(listener);
}