pw method

double pw(
  1. double percent
)

Percentage of screen width (e.g. context.pw(50) = 50% of screen width)

Implementation

double pw(double percent) => (percent / 100) * responsiveData.width;