widthPercent method

double widthPercent(
  1. num percent
)

Get percentage of screen width

percent - Percentage value (0-100) Returns pixel value

Implementation

double widthPercent(num percent) => (_screenWidth * percent) / 100;