deleteTable method Null safety
- String tableName
Deletes the table with tableName
from the database
Implementation
deleteTable(String tableName) async {
final sql = 'DROP TABLE $tableName;';
await db.execute(sql);
schema.remove(tableName);
}
Deletes the table with tableName
from the database
deleteTable(String tableName) async {
final sql = 'DROP TABLE $tableName;';
await db.execute(sql);
schema.remove(tableName);
}