recalculateMedian method

void recalculateMedian()

Implementation

void recalculateMedian() {
  List<double> v = data.copy();
  v.sort((a, b) => ((a - b) * 10000).round());
  median = v.middle();
  dirtyMedian = false;
}