zeba_academy_priority_queue 0.0.1 copy "zeba_academy_priority_queue: ^0.0.1" to clipboard
zeba_academy_priority_queue: ^0.0.1 copied to clipboard

A lightweight generic priority queue for Dart and Flutter with custom priority ordering.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.0.1 - 2026-08-11 #

Added #

  • Added the initial release of zeba_academy_priority_queue.
  • Added generic ZebaPriorityQueue<T> implementation.
  • Added priority-based item ordering.
  • Added configurable priority extraction through the priority callback.
  • Added customizable priority ordering through priorityComparator.
  • Added default highest-priority-first behavior.
  • Added enqueue() for inserting items into the queue.
  • Added dequeue() for removing the highest-priority item.
  • Added peek() for inspecting the highest-priority item without removing it.
  • Added clear() for removing all queued items.
  • Added length for tracking the number of queued items.
  • Added isEmpty state checking.
  • Added isNotEmpty state checking.
  • Added toList() for retrieving items in priority order.
  • Added support for duplicate priority values.
  • Added support for duplicate items.
  • Added an unmodifiable result from toList() to protect internal queue state.
  • Added comprehensive unit tests covering core queue behavior.
  • Added tests for custom priority comparators.
  • Added tests for empty queue behavior.
  • Added tests for enqueue and dequeue ordering.
  • Added tests for peek behavior.
  • Added tests for clearing the queue.
  • Added tests for queue length tracking.
  • Added tests for duplicate priorities and duplicate items.
  • Added package documentation and usage examples.
  • Added GPL-3.0 licensing information.
  • Added Zeba Academy project branding and documentation.
0
likes
150
points
8
downloads

Documentation

API reference

Publisher

verified publisherzeba.academy

Weekly Downloads

A lightweight generic priority queue for Dart and Flutter with custom priority ordering.

Homepage

Topics

#priority-queue #queue #data-structures #dart #flutter

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on zeba_academy_priority_queue