Optional
collectControls whether to collect the most specific context value or to collect all values in the context
hierarchy that are associated with a context name. Defaults to false
if not specified.
If true
, collects all values in the context hierarchy that are associated with the context name.
Collected values are returned as an array in context-descending order, i.e., values of parent contexts
come after values of child contexts.
If false
, the most specific context value is returned, i.e., the value of the closest context
that has a value associated with that name.
Instructs how to look up context values.