setValue method

  1. @override
void setValue(
  1. S series,
  2. C category,
  3. num? value
)
override

add or update the value of a specified series and category. series - the series category - the category. value - the value

Implementation

@override
void setValue(S series, C category, num ?value) {
  final map = _data[series] ?? <C, num?>{};
  map[category] = value;
  _data[series] = map;

  _categories = null;//clear cache
}