w method

double w(
  1. BuildContext context
)

Returns this% of screen width.

Example:

20.w(context); // 20% of screen width

Implementation

double w(BuildContext context) =>
    (this / 100) * MediaQuery.of(context).size.width;