intervals property

  1. @override
List<double> get intervals
override

Implementation

@override
List<double> get intervals {
  final min = bounds.minY;
  final max = bounds.maxY;

  if (min == null || max == null) {
    return [0, 1];
  }

  if (min < 0 && max > 0) {
    return [min, 0, max];
  }

  return [min, max];
}