remove method
Atomically removes requested objects and all deletion dependants. A non-deletable descendant denies the complete operation.
Implementation
EditResult remove(Iterable<String> elementIds) {
final ids = elementIds.toSet();
final decision = removal(ids);
if (!decision.allowed) return decision;
return store.edits.dispatch(
DiagramTransaction(
label: 'Delete elements',
steps: [RemoveElementsStep(ids)],
),
);
}