UserDataService class

Inheritance

Constructors

UserDataService({required BluetoothService service, BluetoothService? secondaryService})

Properties

characteristics List<MovisensBluetoothCharacteristics>
The list of Bluetooth characteristics for this service.
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
name String
The string representation of the service enum.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service ↔ BluetoothService
The underlying BluetoothService for this service.
getter/setter pairinherited
uuid String
UUID of this service.
getter/setter pairoverride

Methods

getAgeFloat() Future<double?>
Get the age of the user in years. Uses double format (e.g. 23.1 or 56.4 years old). Can be null if not set previously.
getGender() Future<Gender?>
Get the gender of the user. Uses enum Gender
getHeight() Future<int?>
Get the height of the user in centimeters
getSensorLocation() Future<SensorLocation?>
Get the location of the sensor on the user. Can be null if not set previously.
getWeight() Future<double?>
Get the weight of the user in kg with 1 decimal.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAgeFloat(double ageFloat) Future<void>
Set the age of the user in years. Uses double format (e.g. 23.1 or 56.4 years old).
setGender(Gender gender) Future<void>
Set the gender of the user. Uses the Gender enum
setHeight(int height) Future<void>
Set the height of the user in centimeters
setSensorLocation(SensorLocation sensorLocation) Future<void>
Set the location of the sensor on the user.
setWeight(double weight) Future<void>
Set the weight of the user in kg with 1 decimal.
toString() String
A string representation of this object.
inherited

Operators

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