loadTableSchema method Null safety

Future<void> loadTableSchema()

Loads the table schema from the database

Implementation

Future<void> loadTableSchema() async {
  var tables = await db
      .query('sqlite_master', where: 'type = ?', whereArgs: ['table']);
  final tableNames = tables.mapKey('name');
  for (final table in tableNames) {
    final columns = await _getColumnNames(table);
    updateTableSchema(table, columns);
  }
}