sw static method

double sw(
  1. num width
)

Calculates the width depending on the device's screen size

Eg: 20.sw -> will take 20% of the safe area width

Implementation

static double sw(num width) => width.sw;