DBProvider class

Properties

database Future<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

Methods

createDatabase(Database db) Future<void>
initDB() Future<Database?>
This method is used to initialize the database. It first gets the application documents directory and then constructs the path of the database file. It then opens the database and creates the tables if they do not exist. It also handles the database upgrade process.
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

Static Properties

db DBProvider
final