add static method

void add(
  1. OutputEvent outputEvent, {
  2. int bufferSize = 30000,
})

Implementation

static void add(OutputEvent outputEvent, {int bufferSize = 30000}) {
  while (_outputEventBuffer.length >= (bufferSize)) {
    _outputEventBuffer.removeFirst();
  }
  _outputEventBuffer.add(outputEvent);
}