circular_buffer 0.12.0  circular_buffer: ^0.12.0 copied to clipboard
circular_buffer: ^0.12.0 copied to clipboard
A Dart Circular Buffer container based on List with a fixed capacity.
0.12.0 #
- Added addHeadmethod.
- Deprecated resetmethod in favor ofclear.
0.11.0 #
- 
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.0+1 #
- Corrected examples in documentation.
0.10.0 - 2021-08-13 #
- Added a CircularBuffer.of(List<T> list, [int? capacity])constructor.
0.9.1 #
- Added documentation to CircularBufferclass
- Added example to README
0.9.0 #
- Migrated to null-safety (thanks to @shyndman)
- Added test for border conditions
0.8.0 #
- The CircularBufferminimum capacity is 2
- Added tests
0.7.0 #
- Use ListMixin.
0.6.0 #
- Migration to Dart 2.
- Added forEach method.
0.5.0 #
- A circular buffer made in Dart 1.