CompileContext constructor
CompileContext(})
Creates a CompileContext for the provided libraryPath
.
Implementation
factory CompileContext(
AssetId libraryPath, {
required Map<String, Set<String>> policyExceptions,
required Map<String, Set<String>> policyExceptionsInPackages,
required bool enableDevTools,
required bool isNullSafe,
}) {
return _LibraryCompileContext(
enableDevTools: enableDevTools,
isNullSafe: isNullSafe,
path: libraryPath.toRelativeUrl(),
policyExceptionsPerFiles: policyExceptions,
policyExceptionsPerPackages: policyExceptionsInPackages,
);
}