double getPosForX(double position, [bool withOffset = false]) { double xPos = position + left; if (withOffset) { xPos = transform.withXScroll(xPos); } return xPos; }