PangleSize.widthPercent constructor

PangleSize.widthPercent(
  1. double widthPercent, {
  2. required double aspectRatio,
})

Implementation

PangleSize.widthPercent(double widthPercent, {required double aspectRatio})
    : width = kPangleScreenWidth * widthPercent,
      height = kPangleScreenWidth * widthPercent / aspectRatio;