ListViewController class
Controller for scroll position in VirtualListView.
Tracks the viewport height, content height, and current offset in rows.
- Implemented types
Constructors
Properties
- contentExtent → int
-
Total content extent in rows.
no setteroverride
- contentHeight → int
-
Current content height in rows.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxOffset → int
-
Maximum scroll offset.
no setteroverride
- offset → int
-
Current scroll offset in rows.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollPercent → double
-
Scroll percentage in the range
0, 1.no setteroverride - viewportExtent → int
-
Visible viewport extent in rows.
no setteroverride
- viewportHeight → int
-
Current viewport height in rows.
no setter
Methods
-
addListener(
void listener()) → void -
Adds a listener that fires when the scroll offset changes.
override
-
jumpTo(
int offset) → bool -
Jumps to an absolute offset. Returns true if the offset changed.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
void listener()) → void -
Removes a previously added listener.
override
-
scrollBy(
int delta) → bool -
Scrolls by a delta. Returns true if the offset changed.
override
-
setContentHeight(
int height) → bool - Updates the content height and clamps offset if needed.
-
setViewportHeight(
int height) → bool - Updates the viewport height and clamps offset if needed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited