addListener method
dynamic
addListener(
- dynamic listener(
- 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);
}