getPosForX method

double getPosForX(
  1. double position, [
  2. bool withOffset = false
])

Implementation

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