aspectRatio property

double get aspectRatio

returns with to height aspect ratio

Implementation

double get aspectRatio {
  if (height != 0.0) {
    return width / height;
  }
  if (width > 0.0) {
    return double.infinity;
  }
  if (width < 0.0) {
    return double.negativeInfinity;
  }
  return 0.0;
}