updateDataPoints method

  1. @override
void updateDataPoints(
  1. List<int>? removedIndexes,
  2. List<int>? addedIndexes,
  3. List<int>? replacedIndexes, [
  4. List<ChartValueMapper<T, num>>? yPaths,
  5. List<List<num>>? chaoticYLists,
  6. List<List<num>>? yLists,
  7. List<ChartValueMapper<T, Object>>? fPaths,
  8. List<List<Object?>>? chaoticFLists,
  9. List<List<Object?>>? fLists,
])
override

Implementation

@override
void updateDataPoints(
  List<int>? removedIndexes,
  List<int>? addedIndexes,
  List<int>? replacedIndexes, [
  List<ChartValueMapper<T, num>>? yPaths,
  List<List<num>>? chaoticYLists,
  List<List<num>>? yLists,
  List<ChartValueMapper<T, Object>>? fPaths,
  List<List<Object?>>? chaoticFLists,
  List<List<Object?>>? fLists,
]) {
  if (sortingOrder == SortingOrder.none) {
    super.updateDataPoints(
      removedIndexes,
      addedIndexes,
      replacedIndexes,
      <ChartValueMapper<T, num>>[],
      <List<num>>[],
      <List<num>>[],
      <ChartValueMapper<T, Object?>>[_sizeByMapper],
      <List<Object?>>[_sizes],
    );
  } else {
    _sizes.clear();
    super.updateDataPoints(
      removedIndexes,
      addedIndexes,
      replacedIndexes,
      <ChartValueMapper<T, num>>[],
      <List<num>>[],
      <List<num>>[],
      <ChartValueMapper<T, Object?>>[_sizeByMapper],
      <List<Object?>>[_chaoticSizes],
      <List<Object?>>[_sizes],
    );
  }
}