Search packages, repositories and app categories

GitHub repositorykranfix/dart-circularbuffer

dart-circularbuffer

A circular buffer container for Dart

dart-circularbuffer project cover
Stars
10
Forks
3
Last push (UTC)
Apr 12, 2026
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

dart-circularbuffer

A circular buffer with a fixed capacity. Supports most List read operations and a fixed-size write interface (add, addHead, clear).

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

buffer.addHead(4);
print(buffer.length); // 3
print(buffer[0]); // 4
print(buffer[1]); // 2
print(buffer[2]); // 3
Frank Moreno GitHub avatar
GitHub author

Frank Moreno ↗

LanguagesDart

Packages published by this repository

Dependencies used

Dependency list 2 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗