flushPending method

void flushPending()
inherited

Runs one flush point: snapshots the generator's strips (when binning) and hands them to emitBatch with this point's ordinal. Call once more from the subclass's finish step so trailing strips land.

Implementation

void flushPending() {
  final ordinal = _flushOrdinal++;
  StripBatchData? data;
  if (binningEnabled) {
    data = StripBatchData.of(generator.strips, ordinal);
    if (data != null) generator.strips.reset();
  }
  emitBatch(ordinal, data);
}