setValue method

Context setValue(
  1. ContextKey key,
  2. Object value
)

Returns a new child context containing the given key/value.

Implementation

Context setValue(ContextKey key, Object value) => Context._(this, key, value);