aspectRatio method

double aspectRatio(
  1. double width,
  2. double height
)

Implementation

double aspectRatio(double width, double height) =>
    MediaQuery.of(this).size.width / width * height;