delete method
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
conflictAlgorithm
(optional) specifies algorithm to use in case of a
conflict. See ConflictResolver
docs for more details
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.
Implementation
Future<int> delete(String table, {String where, List whereArgs}) {
return _db
.delete(table, where: where, whereArgs: whereArgs)
.then((_) {
notifyTrigger([table].toSet());
});
}