DevCompilerBuilder constructor

DevCompilerBuilder({
  1. bool useIncrementalCompiler = true,
  2. bool generateFullDill = false,
  3. bool emitDebugSymbols = false,
  4. bool canaryFeatures = false,
  5. bool trackUnusedInputs = false,
  6. required DartPlatform platform,
  7. String? sdkKernelPath,
  8. String? librariesPath,
  9. String? platformSdk,
  10. 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;