magic_map 1.0.4 copy "magic_map: ^1.0.4" to clipboard
magic_map: ^1.0.4 copied to clipboard

A Dart package that allows JavaScript-like dot-access to deeply nested Maps and Lists.

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.


[1.0.4] - 2025-04-19 #

Added #

  • Introduced MagicMap class for flexible, dynamic map access.
  • Support for dot-separated path-based value retrieval using getPath().
  • Support for dot-separated dynamic nested value assignment using set().
  • Bash-style glob pattern matching support with getWithGlob().
  • Immutable data updates using setImmutable().
  • JSON serialization via toJsonString() and fromJsonString().
  • Dynamic property access using noSuchMethod on _MagicMapImpl.
  • Custom MagicMapException class with detailed error messages.

Internal #

  • Wrapped and unwrapped data to maintain consistent structure using _wrap() and _unwrap() utilities.
  • Recursive collection of matched entries for glob matching.

1
likes
150
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package that allows JavaScript-like dot-access to deeply nested Maps and Lists.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, glob

More

Packages that depend on magic_map