removeDataSet method
Removes d and recomputes the cached ranges if it was found.
Returns true if the set was removed, false for null or a set that is not part of this data.
Implementation
bool removeDataSet(T? d) {
if (d == null) return false;
final removed = dataSets.remove(d);
if (removed) notifyDataChanged();
return removed;
}