horizontalPosition property

int? get horizontalPosition

Get the current horizontal position.

Implementation

int? get horizontalPosition {
  final vp = verticalPosition;
  if (vp == null) {
    return null;
  }
  final horizontalPositions = _horizontalPositions;
  if (vp < 0 || vp >= horizontalPositions.length) {
    return null;
  }
  return horizontalPositions[vp];
}