ScrollPositionAlignmentPolicy enum

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

Constants

explicit → const ScrollPositionAlignmentPolicy

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

const ScrollPositionAlignmentPolicy(0)
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.

const ScrollPositionAlignmentPolicy(1)
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.

const ScrollPositionAlignmentPolicy(2)
values → const List<ScrollPositionAlignmentPolicy>

A constant List of the values in this enum, in order of their declaration.

const List<ScrollPositionAlignmentPolicy>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

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