remove method
Removes an element based on the provided remove definition.
Returns true if any elements were removed.
Implementation
bool remove(XmlRemoveElementEdit remove) {
final indices = _getRemovableIndices(remove);
if (indices.isEmpty) {
return false;
} else {
for (final index in indices.reversed) {
_events.removeAt(index);
}
}
return true;
}