DevCompilerBuilder constructor
DevCompilerBuilder({
- bool useIncrementalCompiler = true,
- bool generateFullDill = false,
- bool emitDebugSymbols = false,
- bool canaryFeatures = false,
- bool trackUnusedInputs = false,
- required DartPlatform platform,
- String? sdkKernelPath,
- String? librariesPath,
- String? platformSdk,
- Map<
String, String> environment = const {},
Implementation
DevCompilerBuilder(
{this.useIncrementalCompiler = true,
this.generateFullDill = false,
this.emitDebugSymbols = false,
this.canaryFeatures = false,
this.trackUnusedInputs = false,
required this.platform,
String? sdkKernelPath,
String? librariesPath,
String? platformSdk,
this.environment = const {}})
: platformSdk = platformSdk ?? sdkDir,
librariesPath = librariesPath ??
p.join(platformSdk ?? sdkDir, 'lib', 'libraries.json'),
buildExtensions = {
moduleExtension(platform): [
jsModuleExtension,
jsModuleErrorsExtension,
jsSourceMapExtension,
metadataExtension,
symbolsExtension,
fullKernelExtension,
],
},
sdkKernelPath = sdkKernelPath ?? sdkDdcKernelPath;