percentageWidth method

double percentageWidth(
  1. double percentage
)

Returns the width calculated as a percentage of the total width.

Example:

double result = sizeConfig.percentageWidth(50);

Implementation

double percentageWidth(double percentage) =>
    percentageSize(width, percentage);