attachListener method

void attachListener(
  1. VoidCallback listener
)

add a listener to the controller.

Implementation

void attachListener(VoidCallback listener) {
  _listeners.add(listener);
}