CalorieDeficit enum
Represents different options for calorie deficit or surplus.
Values
- lose0_5 → const CalorieDeficit
-
Lose 0.5 lbs per week.
const CalorieDeficit(0.5)
- lose1_0 → const CalorieDeficit
-
Lose 1.0 lbs per week.
const CalorieDeficit(1.0)
- lose1_5 → const CalorieDeficit
-
Lose 1.5 lbs per week.
const CalorieDeficit(1.5)
- lose2_0 → const CalorieDeficit
-
Lose 2.0 lbs per week.
const CalorieDeficit(2.0)
- gain0_5 → const CalorieDeficit
-
Gain 0.5 lbs per week.
const CalorieDeficit(0.5)
- gain1_0 → const CalorieDeficit
-
Gain 1.0 lbs per week.
const CalorieDeficit(1.0)
- gain1_5 → const CalorieDeficit
-
Gain 1.5 lbs per week.
const CalorieDeficit(1.5)
- gain2_0 → const CalorieDeficit
-
Gain 2.0 lbs per week.
const CalorieDeficit(2.0)
- maintainWeight → const CalorieDeficit
-
Maintain current weight (no deficit or surplus).
const CalorieDeficit(0)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → double
-
The value of the calorie deficit or surplus.
final
Methods
-
getValue(
MeasurementSystem unit) → double - Get the value of the calorie deficit or surplus based on the provided measurement system.
-
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
Constants
-
values
→ const List<
CalorieDeficit> - A constant List of the values in this enum, in order of their declaration.