pixelValuesToPercentage method

void pixelValuesToPercentage()

Implementation

void pixelValuesToPercentage() {
  // sets initial value if lowerbound has only pixel value
  if (initialValue == null && lowerBound == null) {
    _value = lowerBoundValue.pixel! / _height;
  }
  for (final value in [
    lowerBoundValue,
    halfBoundValue,
    upperBoundValue,
    padding.top,
    padding.bottom,
  ]) {
    if (value != null) {
      _resolvePixels(value);
    }
  }
}