getAllDatumDetails method

List<DatumDetails<D>> getAllDatumDetails({
  1. bool includeOverlaySeries = false,
})

Retrieves the datum details for all data on the chart.

Implementation

List<DatumDetails<D>> getAllDatumDetails(
    {bool includeOverlaySeries = false}) {
  final details = <DatumDetails<D>>[];

  if (_currentSeriesList == null) {
    return details;
  }

  for (final series in _currentSeriesList!) {
    final rendererId = series.getAttr(rendererIdKey);

    if (!includeOverlaySeries && series.overlaySeries) {
      continue;
    }

    for (dynamic datum in series.data) {
      details.add(getSeriesRenderer(rendererId)
          .getDetailsForSeriesDatum(SeriesDatum<D>(series, datum)));
    }
  }

  return details;
}