MovisensDevice constructor

MovisensDevice({
  1. String? roleName,
  2. required String deviceName,
  3. SensorLocation sensorLocation = SensorLocation.Chest,
  4. Sex sex = Sex.Male,
  5. int height = 178,
  6. int weight = 78,
  7. int age = 25,
})

Create a new MovisensDevice.

Default user settings are a 25 year old male, height 178 cm high, weight 78 kg with the sensor place on the chest.

Implementation

MovisensDevice({
  String? roleName,
  required this.deviceName,
  this.sensorLocation = SensorLocation.Chest,
  this.sex = Sex.Male,
  this.height = 178,
  this.weight = 78,
  this.age = 25,
}) : super(
        roleName: roleName ?? DEFAULT_ROLE_NAME,
        isOptional: true,
      );