delete method

Future<int> delete(
  1. String table,
  2. {String where,
  3. List 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 update 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 if a whereClause is passed in, 0 otherwise. To remove all rows and get a count, pass '1' as the whereClause.

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


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