OpenDatabaseOptions class

Options for opening the database see openDatabase for details

Constructors

OpenDatabaseOptions({int version, OnDatabaseConfigureFn onConfigure, OnDatabaseCreateFn onCreate, OnDatabaseVersionChangeFn onUpgrade, OnDatabaseVersionChangeFn onDowngrade, OnDatabaseOpenFn onOpen, bool readOnly: false, bool singleInstance: true})
Open the database at a given path [...]
factory

Properties

onConfigure OnDatabaseConfigureFn
called right after opening the database.
read / write
onCreate OnDatabaseCreateFn
Called when the database is created.
read / write
onDowngrade OnDatabaseVersionChangeFn
Called when the database is downgraded. [...]
read / write
onOpen OnDatabaseOpenFn
Called after all other callbacks have been called.
read / write
onUpgrade OnDatabaseVersionChangeFn
Called when the database is upgraded.
read / write
readOnly ↔ bool
Open the database in read-only mode (no callback called).
read / write
singleInstance ↔ bool
The existing single-instance (hot-restart)
read / write
version ↔ int
Specify the expected version.
read / write
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

Methods

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

Operators

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