RowHeightIndex class final

Prefix sums for measured row heights. Updates and lookup are logarithmic.

Renderers supply measurements for wrapping and annotations. Unmeasured rows use the estimate, allowing distant scrolling before widgets exist.

Constructors

RowHeightIndex(int length, {double estimatedHeight = 24})
Initializes length rows with estimatedHeight.

Properties

estimatedHeight → double
Initial height of an unmeasured row.
final
hashCode → int
The hash code for this object.
no setterinherited
length → int
Number of addressable logical rows.
final
measuredCount → int
Number of rows for which the renderer has supplied a measurement.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

measure(int row, double height) → double
Sets an actual row height and returns its change in pixels or cells.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offsetFor(int row) → double
Distance from the beginning to the top of row.
rowAt(double offset) → int
Row containing offset, clamped to the addressable rows.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited