getWeight method
Get the weight of the user.
Implementation
double? getWeight() {
if (_weight != null) {
return switch (weightUnit) {
MeasurementSystem.imperial => (_weight ?? 0) * Conversion.kgToLbs.value,
_ => _weight,
};
}
return null;
}