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

MambaContext()

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 returns null; null cannot 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 value with its typed key.
toString() String
A string representation of this object.
inherited

Operators

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