ioc top-level property
IocContainer
get
ioc
Returns the active IocContainer.
Zone-based override takes precedence over the global container, which lets tests inject a scoped container via runWithIoc without mutating shared state.
Implementation
IocContainer get ioc =>
Zone.current[#iocContainer] as IocContainer? ?? _ioc;