step property

double get step

Returns the step between band starts.

Implementation

double get step {
  final n = _domain.length;
  if (n == 0) return 0;

  final start = _range[0];
  final stop = _range[1];
  final lo = stop < start ? stop : start;
  final hi = stop < start ? start : stop;

  return _step(n, lo, hi);
}