emit method

void emit(
  1. T newValue
)

Implementation

void emit(T newValue) {
  if (unsafeValue == newValue) return; // Small optional optimization
  unsafeValue = newValue;
  controller.add(newValue);
}