averageShift property

Offset get averageShift

Implementation

Offset get averageShift {
  final shift = switch (axis) {
    Axis.horizontal => Offset(size.width / constraints.length, 0),
    Axis.vertical => Offset(0, size.height / constraints.length),
  };

  return shift;
}