GrowthDirection enum Null safety
The direction in which a sliver's contents are ordered, relative to the scroll offset axis.
For example, a vertical alphabetical list that is going AxisDirection.down with a GrowthDirection.forward would have the A at the top and the Z at the bottom, with the A adjacent to the origin, as would such a list going AxisDirection.up with a GrowthDirection.reverse. On the other hand, a vertical alphabetical list that is going AxisDirection.down with a GrowthDirection.reverse would have the Z at the top (at scroll offset zero) and the A below it.
The direction in which the scroll offset increases is given by applyGrowthDirectionToAxisDirection.
Constants
- forward → const GrowthDirection
-
This sliver's contents are ordered in the same direction as the AxisDirection.
const GrowthDirection(0)
- reverse → const GrowthDirection
-
This sliver's contents are ordered in the opposite direction of the AxisDirection.
const GrowthDirection(1)
-
values
→ const List<
GrowthDirection> -
A constant List of the values in this enum, in order of their declaration.
const List<
GrowthDirection>
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. [...]
override
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited