widthPercent method

double widthPercent(
  1. double percent
)

Implementation

double widthPercent(double percent) => screenWidth * (percent / 100);