builder library

OPTIONAL, advanced alternative to dart run white_label_kit:generate (see bin/generate.dart — that's the primary, recommended path, the same way flutter_native_splash:create/icons_launcher:create work: one direct command, no build_runner involved). If your project already runs dart run build_runner build for freezed/json_serializable/ injectable_generator, this lets that same command also regenerate lib/white_label.g.dart — but it requires a build.yaml sources: override (white_label.yaml sits at the project root, outside build_runner's default lib/** scan) that generate/init do not. Both paths call the exact same generation logic (lib/src/generation/dart_config_generator.dart) — pick whichever fits your project, they produce identical output.

Registered via build.yaml's white_label_generator entry (auto_apply: dependents — any app that depends on this package and has build_runner as a dev_dependency gets this applied automatically, the same way adding freezed_annotation auto-applies the freezed builder).

Classes

WhiteLabelBuilder
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.

Functions

whiteLabelBuilder(BuilderOptions options) → Builder
Builder factory registered via build.yaml's white_label_generator.