aspectRatio property

double get aspectRatio

Get aspect ratio of constraints

Implementation

double get aspectRatio {
  if (maxHeight == 0) return 0;
  return maxWidth / maxHeight;
}