schemaVersion property

  1. @override
int get schemaVersion
override

Specify the schema version of your database. Whenever you change or add tables, you should bump this field and provide a migration strategy.

The schemaVersion must be positive. Typically, one starts with a value of 1 and increments the value for each modification to the schema.

Implementation

@override
int get schemaVersion;