getMuscleMass static method

String getMuscleMass(
  1. double weight,
  2. double rom, {
  3. int fractionDigits = 1,
})

肌肉量 @param: weight(kg) @param: rom(肌肉率 muscle rate) @result: (kg)

Implementation

static String getMuscleMass(
  double weight,
  double rom, {
  int fractionDigits = 1,
}) {
  return (weight * rom / 100).toStringAsFixed(fractionDigits);
}