baseWidth method

double baseWidth(
  1. double aspectRatio
)

Implementation

double baseWidth(double aspectRatio) => min(width, height * aspectRatio);