MiScaleData class
Constructors
- MiScaleData({required String deviceId, required double weight, required bool weightStabilized, required bool measurementComplete, required bool weightRemoved, required MiScaleUnit unit, required DateTime dateTime, required int? impedance})
Properties
- dateTime → DateTime
-
The timestamp given by the device.
final
- dateTimeValid → bool
-
no setter
- deviceId → String
-
ID of the device this data was parsed from.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- impedance → int?
-
final
- measurementComplete → bool
-
Value is
true
if the device is done measuring. This value is usually given after other measurements (such as body fat) have been completed as well.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unit → MiScaleUnit
-
The currently configured weight unit on the device.
final
- weight → double
-
final
- weightRemoved → bool
-
Value is
true
if there is no weight detected.final - weightStabilized → bool
-
Value is
true
if the weight has stabilized.final
Methods
-
getBodyData(
MiScaleGender gender, int age, double height) → MiScaleBodyData? - The extra data that will be used to measure bmi, bone mass, fat percentage,... based on
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override