ScrollPositionAlignmentPolicy enum Null safety
The policy to use when applying the alignment
parameter of
ScrollPosition.ensureVisible.
Constructors
- ScrollPositionAlignmentPolicy()
-
const
Values
- explicit → const ScrollPositionAlignmentPolicy
-
Use the
alignment
property of ScrollPosition.ensureVisible to decide where to align the visible object.ScrollPositionAlignmentPolicy()
- 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.
ScrollPositionAlignmentPolicy()
- 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.
ScrollPositionAlignmentPolicy()
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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.
[explicit, keepVisibleAtEnd, keepVisibleAtStart]