I have a late property(`_bmi`) set to null by default and then I initialize it in a method `calcBMI()`, after its initialization, I use its value in two more methods, `result` and `interpretation` to fulfill some bool conditions, but I run into a `lateinitialisationerror`, because the first method (`result()`) doesn't recognize the value I initialized in `calcBMI()`, it rather defaults to the initial null value that the `_bmi` property had, however the `interpretation()` method recognizes the initialized value. How I know it's only the first method that doesn't recognize it is coz when I pass a value to the `_bmi` property when I'm setting it, the app doesn't throw the error, it works, but then it uses the set value for the first method, but the initialised value from `calcBMI()` for the second method, what am I doing wrong, here is the code.

```
class CalculatorBrain {
  CalculatorBrain({required this.weight, required this.height});

  int weight;
  int height;
  late double _bmi = 30; // when I set this value, result() works with it, but interpretation() works with the value passed in calcBMI();

  String calcBMI() {
    _bmi = weight / pow(height / 100, 2);
    return _bmi.toStringAsFixed(1);
  }

  String result() {
    if(_bmi >= 25) {
      return 'overweight';
    } else if(_bmi > 18.5) {
      return 'normal';
    } else {
      return 'underweight';
    }
  }

  String interpretation() {
    if(_bmi >= 25) {
      return 'You have a higher than normal body weight. Try to exercise more.';
    } else if(_bmi > 18.5) {
      return 'You have a normal body weight. Good job.';
    } else {
      return 'You have a lower than normal body weight. You can eat a bit more.';
    }
  }

}

```

this is where I use my class

```
BottomButton(
              onTap: () {
                CalculatorBrain calc = CalculatorBrain(
                  weight: weight,
                  height: height,
                );
                setState(() {
                  Navigator.push(
                    context,
                    MaterialPageRoute(
                        builder: (context) {
                          return ResultsPage(result: calc.result(), bMI: calc.calcBMI(), interpretation: calc.interpretation());
                        }
                    ),
                  );
                });
              },
              title: 'CALCULATE',
            ),

```