addEntry method
Appends e to the set at dataSetIndex with IDataSet.addEntry and widens the cached ranges to
include that set's ranges. An index out of range only logs an error.
e must be an entry of the set's entry type (for a LineDataSet<D>, an Entry<D>), otherwise Dart throws a
TypeError where Kotlin's unchecked cast let it through.
Implementation
void addEntry(Entry e, int dataSetIndex) {
if (dataSets.length > dataSetIndex && dataSetIndex >= 0) {
final set = dataSets[dataSetIndex];
if (!set.addEntry(e)) return;
calcMinMaxForDataSet(dataSets[dataSetIndex]);
} else {
debugPrint(
'addEntry: Cannot add Entry<*> because dataSetIndex too high or too low.',
);
}
}