tableColumns method
Implementation
Future<List<String?>> tableColumns(String tableName) async {
try {
final schema = await this._db!.rawQuery("PRAGMA table_info('$tableName');");
return schema.map((e) => e['name']) as FutureOr<List<String?>>;
} catch (e) {
print(e);
}
return [];
}