sw property
double
get
sw
Calculates a percentage of the screen width.
Example: 50.sw
(50% of screen width)
Implementation
double get sw => ScreenUtil().screenWidth * (this / 100);
Calculates a percentage of the screen width.
Example: 50.sw
(50% of screen width)
double get sw => ScreenUtil().screenWidth * (this / 100);