addListener method

dynamic addListener(
  1. dynamic listener(
    1. T value
    )
)

Adds a listener to the list of listeners to a Reactive variable The listener function will be called with the current value gets changed. @param listener The listener function to add.

Implementation

addListener(Function(T value) listener) async {
  _listOfListeners.add(listener);
}