KernelBuilder class

A builder which can output kernel files for a given sdk.

This creates kernel files based on moduleExtension files, which are what determine the module structure of an application.

Constructors

KernelBuilder({required DartPlatform platform, required bool summaryOnly, required String sdkKernelPath, required String outputExtension, String? librariesPath, bool useIncrementalCompiler = false, bool trackUnusedInputs = false, String? platformSdk, String? kernelTargetName})

Properties

buildExtensions Map<String, List<String>>
Mapping from input file extension to output file extensions.
final
experiments Iterable<String>
Experiments to pass to kernel (as --enable-experiment=
final
hashCode int
The hash code for this object.
no setterinherited
kernelTargetName String
The --target argument passed to the kernel worker.
final
librariesPath String
The absolute path to the libraries file for the current platform.
final
outputExtension String
final
platform DartPlatform
final
platformSdk String
The root directory of the platform's dart SDK.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkKernelPath String
The sdk kernel file for the current platform.
final
summaryOnly bool
Whether this should create summary kernel files or full kernel files.
final
trackUnusedInputs bool
final
useIncrementalCompiler bool
final

Methods

build(BuildStep buildStep) Future
Generates the outputs for a given BuildStep.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited