BloomVirtualItem class
Represents a single visible row or item calculated by BloomVirtualizer.
Contains the item's original index in the backing dataset, along with its pixel layout positioning within the scroll container: start offset and size.
Div(
style: 'position: absolute; top: 0; left: 0; width: 100%; '
'height: ${item.size}px; transform: translateY(${item.start}px);',
text: 'Item #${item.index}',
)
Constructors
- BloomVirtualItem({required int index, required double start, required double size})
-
Creates a BloomVirtualItem with the given
index,startoffset, andsize.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
The zero-based index of this item within the full collection.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
The rendered height or dimension of this item in pixels.
final
- start → double
-
The top pixel offset of this item relative to the scroll container's inner content.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited