OpeningDetails class Null safety

Provides information about whether migrations ran before opening the database.

Constructors

OpeningDetails(int? versionBefore, int versionNow)
Used internally by drift when opening a database.
const

Properties

hadUpgrade bool
Whether a schema upgrade was performed while opening the database.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
versionBefore int?
The schema version before the database has been opened, or null if the database has just been created.
final
versionNow int
The schema version after running migrations.
final
wasCreated bool
Whether the database has been created during this session.
read-only

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. [...]
inherited