updateAspectRatio method

void updateAspectRatio(
  1. double width,
  2. double height
)

Ekran boyutu (veya cihazın yatay/dikey dönmesi) değiştiğinde oranı günceller.

Implementation

void updateAspectRatio(double width, double height) {
  if (height > 0) {
    aspectRatio = width / height;
  }
}