PangleSize.aspectRatio constructor

PangleSize.aspectRatio(
  1. double aspectRatio
)

aspectRatio item宽高比例

Implementation

PangleSize.aspectRatio(double aspectRatio)
    : assert(aspectRatio > 0),
      width = kPangleScreenWidth,
      height = kPangleScreenWidth / aspectRatio;