setWidth method

double setWidth(
  1. double width
)

Width function Adapted to the device width of the UI Design. Height can also be adapted according to this to ensure no deformation , if you want a square

Implementation

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