PangleExpressSize.widthPercent constructor

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

Implementation

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