resizeFrameShape method
Implementation
void resizeFrameShape({int fixedDimension = 0}) {
var aspectRatio = pixelWidth / pixelHeight;
if (fixedDimension == 0) {
frameHeight = frameWidth / aspectRatio;
} else {
frameWidth = aspectRatio * frameHeight;
}
refreshMatrix();
}