builder library
Builders for Spark code generation.
This library exports the builder factories used by build_runner to process @Page and @Component annotations.
Classes
- ComponentGenerator
- Generator that processes @Component annotations for SparkComponents.
- EndpointGenerator
- Generator that processes @Endpoint annotations on classes.
- PageGenerator
- Generator that processes @Page annotations.
- RouterBuilder
- Aggregating builder that collects all page route info and generates the router configuration.
- WebEntryBuilder
Functions
-
sparkComponentsBuilder(
BuilderOptions options) → Builder - Creates a builder that processes @Component annotations.
-
sparkPagesBuilder(
BuilderOptions options) → Builder - Creates a builder that processes @Page annotations.
-
sparkRouterBuilder(
BuilderOptions options) → Builder - Creates a builder that aggregates all page routes.
-
sparkWebEntryBuilder(
BuilderOptions options) → Builder - Creates a builder that generates web entry points.