delete method

Future<bool> delete(
  1. Id id
)

Delete a single object by its id.

Returns whether the object has been deleted. Isar web always returns true.

Implementation

Future<bool> delete(Id id) {
  return deleteAll([id]).then((int count) => count == 1);
}