count method

Future<int> count(
  1. String tableName
)

Implementation

Future<int> count(String tableName) async {
  return Sqflite.firstIntValue(await _database.rawQuery('SELECT COUNT(*) FROM $tableName')) ?? 0;
}