aspectRatio property

double get aspectRatio

The aspect ratio of the image (width / height).

Implementation

double get aspectRatio {
  var h = height;
  return h == 0 ? 0 : width / h;
}