delete method

Future<int> delete(
  1. String tableName,
  2. int id
)

Implementation

Future<int> delete(String tableName, int id) async {
  return await database!.delete(tableName, where: 'id = ?', whereArgs: [id]);
}