px method

double px(
  1. double value,
  2. Axis axisDirection
)

Implementation

double px(double value, Axis axisDirection) {
  return axisDirection == Axis.horizontal
      ? _width * (value / Figma.instance.deviceWidth)
      : _height * (value / Figma.instance.deviceHeight);
}