getY method

double getY(
  1. double volume
)

Implementation

double getY(double volume) =>
    mDrawHeight - (mDrawHeight) * volume / mMaxVolume!;