aspectRatioOfContent method
Calculates the aspect ratio of the content within the matrix.
Returns the height-to-width ratio of the bounding box containing all true cells.
Implementation
double aspectRatioOfContent() {
final Size size = _getContentSize();
return size.height / size.width; // Aspect ratio
}