OpeningDetails class final

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.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
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.
no setter

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
inherited