circular_buffer
A Dart Circular Buffer container based on List with a fixed capacity.
0.13.0
80K downloads/mo
#1215 most downloaded on pub.dev
kranfix/dart-circularbuffer
What this package is like to depend on
Last release 4 months ago
12 Apr 2026
Release timing varies
gaps range from 1 weeks to 2.4 years
Nearly every release is documented
notes for 10 of 10 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
10 releases · first in 2018
1 release in the last 12 months
see the full history below
Release timeline
10 releases · May 2018 to Apr 2026Releases
latest 10-
0.13.012 Apr 2026Release notes
Open source →- Fixed
addHeadto correctly drop the tail element when the buffer is full. - Removed deprecated
reset()method (deprecated since 0.12.0, useclear()instead). insert()now explicitly throwsUnsupportedError.CircularBuffer.of([])andCircularBuffer.of([], 1)now throwAssertionError(capacity must be > 1).- Internal buffer is now pre-allocated with fixed capacity;
clear()releases references for garbage collection.
- Fixed
-
0.12.028 Sep 2024 -
0.11.018 Apr 2022Release notes
Open source →-
Fixed incorrect buffer state when adding items after calling
reset. -
Made
clearbe an alias toresetinstead of throwing an error. -
Fixed to work with nullable element types.
-
Simplified the implementation.
-
-
0.10.013 Aug 2021 -
0.9.128 Mar 2021 -
0.9.028 Mar 2021Release notes
Open source →- Migrated to null-safety (thanks to @shyndman)
- Added test for border conditions
-
0.8.003 Feb 2021 -
0.7.023 Jan 2021 -
0.6.016 Mar 2020 -
0.5.014 May 2018