anchor property

  1. @override
double anchor
override

The relative position of the zero scroll offset.

For example, if anchor is 0.5 and the axisDirection is AxisDirection.down or AxisDirection.up, then the zero scroll offset is vertically centered within the viewport. If the anchor is 1.0, and the axisDirection is AxisDirection.right, then the zero scroll offset is on the left edge of the viewport.

Implementation

@override
double get anchor => _anchor;
  1. @override
void anchor=(double value)
override

Implementation

@override
set anchor(double value) {
  if (value == _anchor) return;
  _anchor = value;
  markNeedsLayout();
}