attachListener method
add a listener to the controller.
Implementation
void attachListener(VoidCallback listener) {
_listeners.add(listener);
}
add a listener to the controller.
void attachListener(VoidCallback listener) {
_listeners.add(listener);
}