aspectRatio property

double get aspectRatio

Implementation

double get aspectRatio {
  return width * height == 0
      ? 1.0
      : (rotation == 90 || rotation == 270)
          ? height / width
          : width / height;
}