builder library

Functions

factoryFunctionBuilder(BuilderOptions options) → Builder
build_runner factory entry point for the per-package factory function emitter. Reads each curated library's lib/src/widget_catalog/catalog.json and writes lib/src/registration.g.dart declaring a const Map<String, LocalWidgetBuilder> consumed by the SDK runtime.
messageFlowBuilder(BuilderOptions options) → Builder
build_runner factory entry point for message flow codegen. Same machinery as the onboarding flow builder, scoped to lib/message/flows/ by the surface.
messageScreenBuilder(BuilderOptions options) → Builder
build_runner factory entry point for message screen codegen. Same machinery as the onboarding screen builder, scoped to the lib/message/screens/ source root by the surface parameter.
onboardingFlowBuilder(BuilderOptions options) → Builder
build_runner factory entry point for onboarding flow codegen.
onboardingScreenBuilder(BuilderOptions options) → Builder
build_runner factory entry point for onboarding screen codegen.
paywallFlowBuilder(BuilderOptions options) → Builder
build_runner factory entry point for paywall navigation flow codegen.
restageCodegenBuilder(BuilderOptions options) → Builder
build_runner factory entry point for the per-paywall codegen builder.
restageGeneratedDartBuilder(BuilderOptions options) → Builder
build_runner factory entry point for the one builder that materializes per-library generated Dart. It owns the whole <stem>.restage.g.dart family, so a library declaring both a screen and a flow still has exactly one generated part with one claimant.
restageOutputsBuilder(BuilderOptions options) → Builder
build_runner factory entry point for the unified generated-output builder: one deterministic bundle per authored library, its optional inspection report, and the package-wide output index/publication manifest, all resolved once from RestageOutputsBuilder's placement plan.
restagePackageSurfaceCompilerBuilder(BuilderOptions options) → Builder
build_runner factory entry point for canonical package compilation.
restageSourceRosterBuilder(BuilderOptions options) → Builder
build_runner factory entry point for the package-wide Restage source and output ownership roster. The builder is intentionally separate from all artifact emitters: it discovers legacy source declarations through the tracked package graph and writes the deterministic package index/roster before later compiler lanes consume the ownership contract.
surveyFlowBuilder(BuilderOptions options) → Builder
build_runner factory entry point for survey flow codegen. Same machinery as the onboarding flow builder, scoped to lib/survey/flows/ by the surface.
surveyScreenBuilder(BuilderOptions options) → Builder
build_runner factory entry point for survey screen codegen. Same machinery as the onboarding screen builder, scoped to lib/survey/screens/ by the surface parameter.
userA2uiCatalogBuilder(BuilderOptions options) → Builder
build_runner factory entry point for the package-wide A2UI catalog emitter. Scans every lib/**.dart and walks the files that spell a Restage annotation (or an alias of one) for @RestageWidget-annotated classes, assembles the analyzer-fed A2UI seams off the resolved elements, and emits a single lib/generated/restage_a2ui_catalog.g.dart declaring buildRestageCatalogItems() (the genui Catalog source) plus the colocated restage_a2ui_catalog.a2ui.json capability stamp. Opt-in (not applied to dependents) — the emitted code imports the genui runtime, so a consumer enables it only when they want an A2UI catalog.
userCatalogBuilder(BuilderOptions options) → Builder
build_runner factory entry point for the package-wide widget catalog emitter. Scans every lib/**.dart and walks the files that spell a Restage annotation (or an alias of one) for @RestageWidget-annotated classes and emits a single lib/user_catalog.g.dart aggregating them.
userCatalogJsonBuilder(BuilderOptions options) → Builder
build_runner factory entry point for the package-wide widget catalog JSON emitter. Scans every lib/**.dart and walks the files that spell a Restage annotation (or an alias of one) for @RestageWidget-annotated classes and emits lib/src/widget_catalog/catalog.json from the same allocation as lib/user_catalog.g.dart, so a paywall referencing a registered custom widget resolves it against the catalog.
userFactoryBuilder(BuilderOptions options) → Builder
build_runner factory entry point for the package-wide widget factory emitter. Scans every lib/**.dart and walks the files that spell a Restage annotation (or an alias of one) for @RestageWidget-annotated classes, generates per-widget LocalWidgetBuilder closures, and emits a single lib/user_factories.g.dart exposing a registerRestageWidgets() helper the app calls once at startup.
widgetbookStoryBuilder(BuilderOptions options) → Builder
Opt-in Widgetbook v4 stories derived from @RestageWidget metadata.