'How to scrub all series in a TimeSeriesChart?

I have a TimeSeriesChart with at least 2 series at any given time. I've also attached to it, a SelectionModelConfig with type SelectionModelType.info.

  selectionModels: [
    charts.SelectionModelConfig(
      type: charts.SelectionModelType.info,
      changedListener: (model) {
        model.selectedDatum.forEach((element) {
          print('${element.datum}');
        });
        model.selectedSeries.forEach((element) {
          print('${element.id}');
        });
      },
    ),
  ],
  behaviors: [
    charts.LinePointHighlighter(dashPattern: const []),
  ],

Logs were included to check what was going on when I scrub. While I see that the selectedDatum list is populated with 2 objects, as expected; the selectedSeries only has 1 object, which is the closet series from where I'm scrubbing.

Behaviors in the code snippet current doesn't do much other than change how the LinePointHighlighter is rendered. I have tried playing with charts.SelectNearest but with no success.

How can I populate the selectedSeries with both of my series instead of just the closest one?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source