getFatMass static method

String getFatMass(
  1. double weight,
  2. double bfr, {
  3. int fractionDigits = 1,
})

脂肪量 @param: weight(kg) @param: bfr(体脂率 body fat rate) @result: (kg)

Implementation

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