percentWidth method

double percentWidth(
  1. num percent
)

Get percentage of max width

Implementation

double percentWidth(num percent) {
  return maxWidth * (percent / 100);
}