calculateKiloAndCentimeters static method

double calculateKiloAndCentimeters({
  1. required double weight,
  2. required double height,
})

Implementation

static double calculateKiloAndCentimeters({
  required double weight,
  required double height,
}) {
  return weight / ((height / 100) * (height / 100));
}