fixed_queue 1.0.0 copy "fixed_queue: ^1.0.0" to clipboard
fixed_queue: ^1.0.0 copied to clipboard

a queue with a fixed maximum size

example/fixed_queue_example.dart

import 'package:fixed_queue/fixed_queue.dart';

void main() {
  final queue = FixedQueue<String>(maxSize: 2);
  queue.push("a");
  queue.push("b");
  queue.push("c");
  print("lenght: ${queue.length}");
  assert(queue.length == 2);
  print("queue[0]: ${queue[0]}");
  print("queue[1]: ${queue[1]}");
}
1
likes
140
points
102
downloads

Publisher

unverified uploader

Weekly Downloads

a queue with a fixed maximum size

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on fixed_queue