I have a list of ChartSeriesControllers.
How do I search and fid the objectID for each controller so I will not add it to my list.
currentChartSeries = FastLineSeries<PressureReading, DateTime>(
dataSource: _listPressureReading, //myChartDataList[counter],
xValueMapper: (PressureReading currentChatData, _) =>
currentChatData.time.isUtc ? currentChatData.time.toLocal() : currentChatData.time,
yValueMapper: (PressureReading currentChatData, _) => currentChatData.value * convertPressureMBarRate,
color: currentColor,
legendItemText: split.length > 1 ? channelId : seriesname, //seriesLegendItemText[counter],
width: 0.8,
animationDuration: chartAnimationDuration,
xAxisName: "yAxisZero", // "yAxis",
onRendererCreated: (ChartSeriesController controller) {
//_mySeriesController = controller;
if (mySeriesControllerList.contains(controller)) {
} else {
mySeriesControllerList.add(controller);
}
},
It seems like mySeriesController.contains(controller) always return false.
Help