applyToRoot function

BuilderApplication applyToRoot(
  1. Builder builder, {
  2. bool isOptional = false,
  3. bool hideOutput = false,
  4. InputSet generateFor = const InputSet(),
})

Apply builder to the root package.

Creates a BuilderApplication which corresponds to an empty builder key so that no other build.yaml based configuration will apply.

Implementation

BuilderApplication applyToRoot(Builder builder,
        {bool isOptional = false,
        bool hideOutput = false,
        InputSet generateFor = const InputSet()}) =>
    BuilderApplication.forBuilder('', [(_) => builder], toRoot(),
        isOptional: isOptional,
        hideOutput: hideOutput,
        defaultGenerateFor: generateFor);