getStandardWeight static method

String getStandardWeight(
  1. int sex,
  2. double height, {
  3. int fractionDigits = 1,
})

标准体重 @param: sex(1: male; Others: Female) @param: height(cm) @result: (kg)

Implementation

static String getStandardWeight(
  int sex,
  double height, {
  int fractionDigits = 1,
}) {
  final standardWeight = getStandardWeightDouble(sex, height);
  return standardWeight.toStringAsFixed(fractionDigits);
}