EstimateRefreshStats class

Cumulative cost of refreshing estimated extents and rebuilding the offset index of one list, read through ListController.estimateRefreshStats.

Both operations are linear in the number of items. Counters accumulate for the lifetime of the list and survive attaching its controller again.

Annotations

Constructors

EstimateRefreshStats({int refreshCount = 0, int lastRefreshItemCount = 0, Duration lastRefreshDuration = Duration.zero, int deferredResizeCount = 0, int skippedResizeCount = 0, int indexRebuildCount = 0, Duration lastIndexRebuildDuration = Duration.zero})
Creates a snapshot; every count and duration defaults to zero.
const

Properties

deferredResizeCount → int
Number of layouts that deferred the refresh after a cross-axis extent change until the extent stops changing.
final
hashCode → int
The hash code for this object.
no setteroverride
indexRebuildCount → int
Number of full rebuilds of the index that maps item indices to scroll offsets.
final
lastIndexRebuildDuration → Duration
Duration of the most recent full offset index rebuild.
final
lastRefreshDuration → Duration
Duration of the most recent refresh, excluding the offset index rebuild.
final
lastRefreshItemCount → int
Number of items estimated by the most recent refresh.
final
refreshCount → int
Number of passes over all items that replaced extents with new estimates: full refreshes, caused by a cross-axis extent change, an estimationKey change or invalidateAllExtents, and the refresh after a deferred cross-axis extent change settled.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skippedResizeCount → int
Number of cross-axis extent changes that kept every extent because the list's crossAxisLayoutKey returned an equal value for the new extent.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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