installContext function

void installContext(
  1. TestContext? ctx
)

Pins ctx isolate-wide until clearContext (plugin tier).

Zone values cannot be mutated after a zone is forked, so runners whose hooks run in sibling zones (setUp / tearDown) pin here and clear in the matching teardown. Passing null clears the pin.

Implementation

void installContext(TestContext? ctx) => _isolateContext = ctx;