emit method

void emit(
  1. String stream, [
  2. dynamic value
])

Sets a new value value to the data stream stream. If there are active subscribers, the value will be dispatched to them.

Implementation

void emit(String stream, [var value]) {
  _mStorage?.setValue(stream, value ?? true);
}