spacer method

Widget spacer(
  1. double value,
  2. Axis axisDirection
)

Implementation

Widget spacer(double value, Axis axisDirection) {
  return SizedBox(
    width: axisDirection == Axis.horizontal
        ? _width * (value / Figma.instance.deviceWidth)
        : 1,
    height: axisDirection == Axis.vertical
        ? _height * (value / Figma.instance.deviceHeight)
        : null,
  );
}