add method

void add(
  1. T value
)

Emits a new value to all listeners.

Throws if this is a derived subject. Use the parent subject instead.

Implementation

void add(T value) {
  if (_isDerived) {
    throw Exception("Cannot add value to derived subject");
  }
  _internalAdd(value);
}