circular_buffer 0.9.1
circular_buffer: ^0.9.1 copied to clipboard

A Dart Circular Buffer container based on List with a fixed capacity.

dart-circularbuffer #

A circular buffer with a fixed capacity supporting all Dart List operations.

final buffer = CircularBuffer<int>(3)..add(1)..add(2);
print(buffer.length); // 2
print(buffer.first); // 1
print(buffer.isFilled); // false
print(buffer.isUnfilled); // true

buffer.add(3);
print(buffer.length); // 3
print(buffer.isFilled); // true
print(buffer.isUnfilled); // false

buffer.add(4);
print(buffer.first); // 4
1
likes
130
pub points
55%
popularity

A Dart Circular Buffer container based on List with a fixed capacity.

Homepage

Documentation

Documentation
API reference

Uploader

frankmoreno1993@gmail.com

License

MIT (LICENSE)

More

Packages that depend on circular_buffer