ScrollInfo class
Represents scroll information for a window or scroll area.
Contains the scroll position and availability for both vertical and horizontal scrolling. Scroll positions are normalized values between 0.0 and 1.0:
- Vertical: 0.0 = top, 1.0 = bottom
- Horizontal: 0.0 = left, 1.0 = right
Constructors
- ScrollInfo({double? verticalPosition, double? horizontalPosition, bool hasVerticalScroll = false, bool hasHorizontalScroll = false})
-
const
-
ScrollInfo.fromMap(Map<
String, dynamic> map) -
Creates a ScrollInfo from a map (typically from native code).
factory
Properties
- hasAnyScroll → bool
-
Whether any scroll information is available.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasHorizontalScroll → bool
-
Whether horizontal scrolling is available for this window.
final
- hasVerticalScroll → bool
-
Whether vertical scrolling is available for this window.
final
- horizontalPosition → double?
-
Horizontal scroll position (0.0 = left, 1.0 = right).
null if horizontal scrolling is not available.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verticalPosition → double?
-
Vertical scroll position (0.0 = top, 1.0 = bottom).
null if vertical scrolling is not available.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this ScrollInfo to a map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override