MambaContext class
Mutable state scoped to an executor and shared by all of its executions.
Reusing an executor intentionally retains values between calls to
execute; create another executor when an isolated context is required.
Context is a scalar hook-state bag, not a dependency container. Environment
variables and configuration files remain application responsibilities.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get<
T extends Object> (MambaContextKey< T> key) → T? -
Returns the unwrapped primitive associated with
key, if one has been set. An unset key returnsnull;nullcannot be stored. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set<
T extends Object> (MambaContextKey< T> key, MambaContextValue<T> value) → void -
Associates
valuewith its typedkey. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited