periodSpanHeight method

double periodSpanHeight(
  1. int startIndex,
  2. int span
)

Implementation

double periodSpanHeight(int startIndex, int span) => visiblePeriods
    .skip(startIndex)
    .take(span)
    .fold(0.0, (sum, period) => sum + periodHeight(period));