resizeFrameShape method

void resizeFrameShape({
  1. int fixedDimension = 0,
})

Implementation

void resizeFrameShape({int fixedDimension = 0}) {
  var aspectRatio = pixelWidth / pixelHeight;

  if (fixedDimension == 0) {
    frameHeight = frameWidth / aspectRatio;
  } else {
    frameWidth = aspectRatio * frameHeight;
  }

  refreshMatrix();
}