exportSchema property

bool? exportSchema
final

Whether to export the schema of the database to the schema directory, which autoMigrations require.

The schema of each version is exported to <schema directory>/<path of the library>/<database class>/<version>.json. The schema directory is froom_schemas by default and can be configured by the schema_location option of the froom builder in build.yaml. By default, it's only exported when there are autoMigrations. Enable it before adding the first automatic migration, so that the schema of the version to migrate from is available.

Implementation

final bool? exportSchema;