ScrollPositionAlignmentPolicy enum

The policy to use when applying the alignment parameter of ScrollPosition.ensureVisible.

Inheritance

Constructors

ScrollPositionAlignmentPolicy()
const

Values

explicit → const ScrollPositionAlignmentPolicy

Use the alignment property of ScrollPosition.ensureVisible to decide where to align the visible object.

keepVisibleAtEnd → const ScrollPositionAlignmentPolicy

Find the bottom edge of the scroll container, and scroll the container, if necessary, to show the bottom of the object.

For example, find the bottom edge of the scroll container. If the bottom edge of the item is below the bottom edge of the scroll container, scroll the item so that the bottom of the item is just visible. If the entire item is already visible, then do nothing.

keepVisibleAtStart → const ScrollPositionAlignmentPolicy

Find the top edge of the scroll container, and scroll the container if necessary to show the top of the object.

For example, find the top edge of the scroll container. If the top edge of the item is above the top edge of the scroll container, scroll the item so that the top of the item is just visible. If the entire item is already visible, then do nothing.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<ScrollPositionAlignmentPolicy>
A constant List of the values in this enum, in order of their declaration.