operator []= method

  1. @override
void operator []=(
  1. ChartDataPointType pointType,
  2. dynamic value
)
override

Implementation

@override
void operator []=(ChartDataPointType pointType, dynamic value) {
  switch (pointType) {
    case ChartDataPointType.y:
      y = value;
      break;
    case ChartDataPointType.high:
      high = value;
      break;
    case ChartDataPointType.low:
      low = value;
      break;
    case ChartDataPointType.open:
      open = value;
      break;
    case ChartDataPointType.close:
      close = value;
      break;
    case ChartDataPointType.volume:
      volume = value;
      break;
    case ChartDataPointType.median:
      median = value;
      break;
    case ChartDataPointType.mean:
      mean = value;
      break;
    case ChartDataPointType.outliers:
      outliers = value;
      break;
    case ChartDataPointType.bubbleSize:
      bubbleSize = value;
      break;
    case ChartDataPointType.cumulative:
      cumulative = value;
      break;
  }
}