initialize static method
Implementation
static Future<Database> initialize() async {
var database = openDatabase(
databaseName,
version: databaseVersion,
onCreate: (Database db, int version) async {
debugPrint('Database Created');
await initializeTable(
database: db,
version: version,
);
},
onConfigure: (Database db) {
debugPrint('Configuring Database..');
},
onOpen: (Database db) {
debugPrint('Database Open & Connected');
},
);
return database;
}