beforeCalculate method Null safety

void beforeCalculate(
  1. Resting resting
)

Implementation

void beforeCalculate(Resting resting) {}