delete method

Future delete(
  1. Map<String, dynamic> record
)

Implementation

Future delete(Map<String, dynamic> record) async {
  if (!record.containsKey(ID_KEY) || record[ID_KEY] == null) throw Exception("'entityId' must be not be 'null'");
  await deleteById(record[ID_KEY] as int);
}