Context<T, K> class

Constructors

Context([Map<T, K>? initial])

Properties

hashCode int
The hash code for this object.
no setterinherited
parent Context?
Parent Context which current context was inherited from
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAll(Context<T, K> other) → void
Adds all values from other context w/o setting the parent value
clear() → void
Clears all values from the context Sets parent to null
debugToMap() Map<T, K>?
getValueByTypeKey<T>({dynamic nullable = false}) → K?
Gets value by key T (where key is Type) if nullable is true – gets a value by key where key is T?
inherit(Context<T, K> other) → void
Inherits values from other Context and sets parent value to other
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(T key) → void
Removes the value of key
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](T key) → K?
Sets values by key
operator []=(T key, K value) → void
Sets value to the context at key