ScrollPaneController class

A controller for a ScrollPane.

A controller can only control one scroll pane at a time. Controllers can be attached to a scroll pane by setting them as the ScrollPane.controller.

When callers modify values in this class, the attached scroll pane will respond, and registered listeners will be notified.

Mixed in types

Constructors

ScrollPaneController({Offset scrollOffset = Offset.zero})
Creates a new ScrollPaneController.

Properties

hashCode int
The hash code for this object.
no setterinherited
maxScrollOffset Offset
The maximum scroll offset given the view size and viewport size.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollOffset Offset
The amount that a ScrollPane.view has been scrolled within the scroll pane's viewport.
getter/setter pair

Methods

addListener(ScrollPaneListener listener) → void
inherited
dispose() → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners(ListenerVisitor<ScrollPaneListener> visitor) → void
inherited
removeListener(ScrollPaneListener listener) → void
inherited
scrollToVisible(Rect rect, {AnimationController? animation}) → void
Scrolls this controller until the scrollOffset is such that the specified rect is fully visible in the viewport.
toString() String
A string representation of this object.
inherited

Operators

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