double scaledOptimumHeight(double value){ final initialValue = value; final scaleRatio = initialValue/optimumHeight!; final scaledValue = _currentHeight! * scaleRatio; return scaledValue; }