baseHeight method

double baseHeight(
  1. double aspectRatio
)

Implementation

double baseHeight(double aspectRatio) => min(height, width / aspectRatio);