fire method

void fire(
  1. T value
)

Caches a new value. If the latch is already open, it immediately notifies listeners.

If the latch is closed, the value is stored internally and will be sent to listeners only when unlatch is called.

value: The value to cache and potentially notify listeners with.

Implementation

void fire(T value) {
  _cached = value;
  if (_latchOpened) {
    super.properties[this._property] = value;
    notifyListeners(this._property);
  }
}