w static method

double w(
  1. num width
)

Calculates the width depending on the device's screen size

Eg: 20.w -> will take 20% of the screen's width

Implementation

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