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);