percentRadius static method

double percentRadius(
  1. double percent
)

Returns radius scaled by percentage of safe width.

Implementation

static double percentRadius(double percent) {
  _assertInitialized();
  assert(
    percent >= 0 && percent <= 100,
    'Percent must be between 0 and 100.',
  );
  return safeWidth * (percent / 100);
}