GrowthDirection enum

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.

Constants

forward → const GrowthDirection

This sliver's contents are ordered so that the first item is at the lowest scroll offset, and later items are at greater scroll offsets. The direction in which the scroll offset increases is given by the AxisDirection of the sliver.

const GrowthDirection(0)
reverse → const GrowthDirection

This sliver's contents are ordered so that the last item is at the lowest scroll offset, and earlier items are at greater scroll offsets. The direction in which the scroll offset increases is given by the AxisDirection of the sliver.

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

index int

The integer index of this enum.

final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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