fancy_collection 0.1.0 copy "fancy_collection: ^0.1.0" to clipboard
fancy_collection: ^0.1.0 copied to clipboard

Observable List and Map implementations for Flutter that notify listeners about added, updated and removed entries, including changes in nested collections.

0.1.0 #

Initial public release.

  • FancyList and FancyMap: observable List and Map implementations. Every mutating operation emits exactly one event per affected entry; bulk list changes (removeWhere, clear, sort, ...) emit a single [*] event.
  • Path-based listeners (addListener) with * and [*] wildcards, backslash escaping for arbitrary keys, and per-event-type filtering. Malformed paths throw an ArgumentError.
  • getValueNotifier for use with ValueListenableBuilder.
  • Nested maps and lists — in both FancyMap and FancyList — bubble their events up to the root, with paths relative to the listening collection. Removed or replaced children are detached from their parent.
  • Typed collections such as FancyMap<String, Map<String, dynamic>> and FancyList<List<int>> are supported; values that cannot be made observable for the declared type are stored unchanged.
0
likes
160
points
366
downloads

Documentation

API reference

Publisher

verified publisherdualware.com

Weekly Downloads

Observable List and Map implementations for Flutter that notify listeners about added, updated and removed entries, including changes in nested collections.

Repository (GitHub)
View/report issues
Contributing

Topics

#collections #observable #state-management #listener

License

MIT (license)

Dependencies

flutter

More

Packages that depend on fancy_collection