TypedMap class

An immutable, type-safe wrapper around a plain Map<String, dynamic>.

Provides helper accessors for common IPLD/IPFS value types while keeping the underlying map immutable from the public API.

Constructors

TypedMap(Map<String, dynamic> map)
Creates an immutable view of the given map.

Properties

hashCode → int
The hash code for this object.
no setteroverride
length → int
The number of entries in the map.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

containsKey(String key) → bool
Returns true if the map contains key.
get<T>(String key, T defaultValue) → T
Returns the value for key cast to T, or defaultValue if missing or not of type T.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Returns an unmodifiable view of the underlying map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override
operator [](String key) → dynamic
Returns the raw value for key.