-
Fixed incorrect buffer state when adding items after calling
reset
. -
Made
clear
be an alias toreset
instead of throwing an error. -
Fixed to work with nullable element types.
-
Simplified the implementation.
- Corrected examples in documentation.
- Added a
CircularBuffer.of(List<T> list, [int? capacity])
constructor.
- Added documentation to
CircularBuffer
class - Added example to README
- Migrated to null-safety (thanks to @shyndman)
- Added test for border conditions
- The
CircularBuffer
minimum capacity is 2 - Added tests
- Use
ListMixin
.
- Migration to Dart 2.
- Added forEach method.
- A circular buffer made in Dart 1.