notifyListeners method
- T? value
Should be used by the state to send updates to the calling widget.
Implementation
void notifyListeners(T? value) {
_value = value;
if (_listeners == null) return;
for (final void Function(T? newValue) listener in _listeners!) {
listener.call(value);
}
}