getPositionInPixels method

double getPositionInPixels(
  1. double maxHeight,
  2. double grabbingHeight
)

Implementation

double getPositionInPixels(double maxHeight, double grabbingHeight) {
  var centerPosition = this._getCenterPositionInPixels(maxHeight);
  var centerOffset = grabbingHeight * this.grabbingContentOffset / 2;
  return centerPosition + centerOffset;
}