Environment class
Environment of bindings.
- Implementers
Constructors
- Environment([Environment? _owner])
- Constructor for the nested environment.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- interrupt ↔ InterruptCallback?
-
A callback to check if execution should continue. Consumers should set
this to a function that throws an exception if execution should stop.
getter/setter pair
-
keys
→ Iterable<
Name> -
Returns the keys of the bindings.
no setter
- owner → Environment?
-
Returns the parent of the bindings.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkInterrupt(
) → void - Check if execution should continue. See interrupt.
-
create(
) → Environment - Constructor for a nested environment.
-
define(
Name key, dynamic value) → dynamic -
Defines a new binding from
key
tovalue
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
Name key) → dynamic -
Return the binding for
key
. -
operator []=(
Name key, dynamic value) → void -
Updates the binding for
key
with avalue
.