next method

  1. @override
void next(
  1. T value
)
override

Pass a value to the observer.

Implementation

@override
void next(T value) {
  if (bufferSize != null) {
    while (_buffer.length >= bufferSize!) {
      _buffer.removeFirst();
    }
  }
  _buffer.addLast(value);
  super.next(value);
}