percentWidth method

double percentWidth(
  1. double percent
)

Implementation

double percentWidth(double percent) => width * percent;