delete method

Future delete(
  1. T record
)

Implementation

Future delete(T record) async {
  await _collection.deleteById(record.entityId!);
}