Schema class Null safety

Constructors

Schema(int version, {required Set<SchemaTable> tables, int generatorVersion = GENERATOR_VERSION})
Schema.fromMigrations(Set<Migration> migrations, [int? version])
Create a schema from a set of migrations. If version is not provided, the highest migration version will be used
factory

Properties

forGenerator String
Output for generator
read-only
generatorVersion int
Version used to produce this scheme
final
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tables Set<SchemaTable>
final
version int
The last version successfully migrated to SQLite. This should be before or equal to MigrationManager's #version. if MigrationManager is used.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
override

Static Methods

expandMigrations(Set<Migration> migrations) List<MigrationCommand>

Constants

GENERATOR_VERSION → const int
1