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.
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.
userA2uiCatalogBuilder(BuilderOptions options) → Builder
build_runner factory entry point for the package-wide A2UI catalog emitter. Walks every lib/**.dart for @RestageWidget-annotated classes, assembles the analyzer-fed A2UI seams off the resolved elements, and emits a single lib/restage_a2ui_catalog.g.dart declaring buildRestageCatalogItems() (the genui Catalog source) plus the companion 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 customer-catalog emitter. Walks every lib/**.dart 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 customer-catalog JSON emitter. Walks every lib/**.dart 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 customer-factory emitter. Walks every lib/**.dart for @RestageWidget-annotated classes, generates per-widget LocalWidgetBuilder closures, and emits a single lib/user_factories.g.dart exposing a registerRestageCustomerWidgets() helper the customer calls once at startup.