BodyMassIndex class abstract

Body Mass Index (BMI) is a simple index of weight-for-height that is commonly used to classify underweight, overweight and obesity in adults.

Constructors

BodyMassIndex()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

calculateKiloAndCentimeters({required double weight, required double height}) double
calculateKiloAndMeters({required double weight, required double height}) double
Calculate the Body Mass Index (BMI) WEIGHT in kg and HEIGHT in meters Formula: BMI = weight / (height * height) Returns the BMI value as a double
calculatePoundsAndInches({required double weight, required double height}) double
Calculate the Body Mass Index (BMI) WEIGHT in pounds and HEIGHT in inches Formula: BMI = (weight / (height * height)) * 703 Returns the BMI value as a double
getBodyStage(double bmi) String
Returns the state of the BMI based on the BMI value Returns a string eg 'Underweight', 'Normal', 'Overweight', 'Moderately Obese', 'Severely Obese', 'Dangerously Obese'
getBodySuggestion(double bmi) String
Returns a suggestion based on the BMI value