notifyListeners method

void notifyListeners(
  1. 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);
  }
}