RowHeightIndex constructor

RowHeightIndex(
  1. int length, {
  2. double estimatedHeight = 24,
})

Initializes length rows with estimatedHeight.

Implementation

RowHeightIndex(this.length, {this.estimatedHeight = 24})
  : _tree = List.filled(length + 1, 0) {
  RangeError.checkNotNegative(length, 'length');
  if (!estimatedHeight.isFinite || estimatedHeight <= 0) {
    throw ArgumentError.value(estimatedHeight, 'estimatedHeight');
  }
}