lengthInBytes property

int lengthInBytes

Get the total available bytes in all chunk buffers (excluding bytes already de-queued from head buffer).

Implementation

int get lengthInBytes =>
    _bufferedChunks.fold(0, (int count, el) => count + el.length);