delete abstract method

Future<int> delete(
  1. String table,
  2. {String? where,
  3. List<Object?>? whereArgs}

Convenience method for deleting rows in the database.

Delete from table

where is the optional WHERE clause to apply when updating. Passing null will delete all rows.

You may include ?s in the where clause, which will be replaced by the values from whereArgs

Returns the number of rows affected.

 int count = await db.delete(tableTodo, where: 'columnId = ?', whereArgs: [id]);


Future<int> delete(String table, {String? where, List<Object?>? whereArgs});