modelBuilder function

Builder modelBuilder(
  1. BuilderOptions options
)

Factory function that creates and returns a ModelBuilder instance.

This function is the entry point for the model code generation system. It creates a LibraryBuilder that uses the ModelGen generator to process model classes that extend Models<T>.

Implementation

Builder modelBuilder(BuilderOptions options) =>
    LibraryBuilder(ModelGen(), generatedExtension: '.models.g.dart');