currentContext top-level property

Context get currentContext

The current context, or rootContext if none is set.

See also:

  • withContext, which allows you to run code in a specific context.

Implementation

Context get currentContext =>
    (Zone.current[#z3_context] as Context?) ?? rootContext;