getWidth method

double getWidth(
  1. double percentage
)

Get a portion of the current device width (Using percentage value of current device width)

Implementation

double getWidth(double percentage) {
  return width * percentage;
}