MiScaleMeasurement class

Constructors

MiScaleMeasurement({required double weight, required MiScaleMeasurementStage stage, required MiScaleUnit unit, String? deviceId, int? impedance, String? id, DateTime? dateTime})

Properties

dateTime DateTime
The timestamp associated with this measurement.
final
deviceId String?
The id given to the device used for this measurement
final
hashCode int
The hash code for this object.
no setteroverride
id String
The unique id of the measurement in uuid v4 format
final
impedance int?
The impedance associated with this measurement
final
isActive bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stage MiScaleMeasurementStage
The current stage this measurement is at.
final
unit MiScaleUnit
The weight unit for the current measurement, based on the device configuration
final
weight double
The weight associated with this measurement
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.
inherited

Operators

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

Static Methods

processData(MiScaleMeasurement? previousMeasurement, MiScaleData scaleData) MiScaleMeasurement?