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