addRuntimePackages function
Adds multiple Package instances to the runtime context.
This is a bulk variant of addRuntimePackage intended for efficient initialization during scanning or bootstrap phases.
If replace is true:
- All previously registered packages are cleared
- The provided list becomes the complete package set
This API is internal-only and must be invoked before freezing.
Implementation
void addRuntimePackages(List<Package> packages, {bool replace = false}) => _InternalRuntime.addPackages(packages, replace: replace);