Dictionary class
A "stack frame" - or a dictionary of functions, with references to its parent frames so that closures can be implemented
Constructors
- Dictionary({Dictionary? parent})
Properties
-
data
→ Map<
String, dynamic> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- parent → Dictionary?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
String key) → dynamic - Get the given key from the frame
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
String key, dynamic value, {bool shadows = true}) → void - Sets a given key-value in this frame. If shadows is true (default) always sets in this frame If false, this will find the nearest ancestor that has the key and override it If no ancestor has the key, it is set locally
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited