circular_buffer 0.11.0 icon indicating copy to clipboard operation
circular_buffer: ^0.11.0 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); // 2
2
likes
130
pub points
80%
popularity

Publisher

unverified uploader

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

Homepage

Documentation

Documentation
API reference

License

Icon for licenses.MIT (LICENSE)

More

Packages that depend on circular_buffer