reverse property

bool reverse
final

Whether the scroll view scrolls in the reading direction.

For example, if the reading direction is left-to-right and scrollDirection is Axis.horizontal, then the scroll view scrolls from left to right when reverse is false and from right to left when reverse is true.

Similarly, if scrollDirection is Axis.vertical, then the scroll view scrolls from top to bottom when reverse is false and from bottom to top when reverse is true.

This property only applies to the outer scroll view, composed of the slivers returned from headerSliverBuilder. Since the inner scroll view is not directly configured by the NestedScrollView. For both to scroll in reverse, configure the scroll view of the body the same way if they are expected to match. This allows for flexible configurations of the NestedScrollView.

Defaults to false.

Implementation

final bool reverse;