setWidth static method

double setWidth(
  1. num width
)

根据UI设计的设备宽度适配

Implementation

static double setWidth(num width) => width * scaleWidth;