ScopedMap class

A map with values in different scopes

Each ScopedMap has some scoped values, this values will be available to it's children, but not to it's parent.

Implemented types

Constructors

ScopedMap({ScopedMap? parent, List<ScopedOverride>? overrides})
A map with values in different scopes

Properties

hashCode int
The hash code for this object.
no setterinherited
parent ScopedMap?
The parent of this scope. The chain of parents and children form a tree.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope ScopedMap
The tree of values for this scope
no setteroverride

Methods

child({List<ScopedOverride>? overrides}) ScopedMap
Returns a child of this scope
dispose() Future<void>
Disposes of all the values in this scope. If this is the root scope, then all the values will be disposed. If this is a child scope, then it will only dispose of the values scoped (not the global ones) and created by this scope with get. // TODO: 1A test and set up in executor
get<T>(ScopedRef<T> ref) → T
Retrieves a value from itself or from its parent
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parents() Iterable<ScopedMap>
Returns an iterable with all the parents of this scope
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited