WhiteLabelBuilder class
See this library's dartdoc — a thin build_runner wrapper around
generateWhiteLabelSource/resolveGeneratorTenantId, for projects that
prefer triggering generation via build_runner instead of the direct
generate CLI command.
Constructors
-
WhiteLabelBuilder({Map<
String, String> ? environmentOverride}) - Creates the builder, optionally overriding the environment used for tenant-selection.
Properties
-
buildExtensions
→ Map<
String, List< String> > -
Mapping from input file extension to output file extensions.
no setter
-
environmentOverride
→ Map<
String, String> ? -
Overrides Platform.environment for tenant-selection purposes —
null(the real-world default) means use the real environment. Exists sotest/builder_test.dartcan exerciseTENANT_IDselection deterministically without forking a real subprocess per test case.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildStep buildStep) → Future< void> -
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