WorkoutStepCustomTargetValueLowField constructor

WorkoutStepCustomTargetValueLowField({
  1. int size = 0,
  2. bool growable = true,
})

Implementation

WorkoutStepCustomTargetValueLowField({int size = 0, bool growable = true})
    : super(
          name: 'custom_target_value_low',
          id: ID,
          type: BaseType.UINT32,
          offset: 0,
          scale: 1,
          size: size,
          growable: growable,
          subFields: [
            SubField(
                name: 'custom_target_speed_low',
                type: BaseType.UINT32,
                scale: 1000,
                offset: 0,
                units: 'm/s',
                referenceMap: {
                  WorkoutStepTargetTypeField.ID: [0, 12]
                }),
            SubField(
                name: 'custom_target_heart_rate_low',
                type: BaseType.UINT32,
                scale: 1,
                offset: 0,
                units: '% or bpm',
                referenceMap: {
                  WorkoutStepTargetTypeField.ID: [1, 13]
                }),
            SubField(
                name: 'custom_target_cadence_low',
                type: BaseType.UINT32,
                scale: 1,
                offset: 0,
                units: 'rpm',
                referenceMap: {
                  WorkoutStepTargetTypeField.ID: [3]
                }),
            SubField(
                name: 'custom_target_power_low',
                type: BaseType.UINT32,
                scale: 1,
                offset: 0,
                units: '% or watts',
                referenceMap: {
                  WorkoutStepTargetTypeField.ID: [4, 7, 8, 9, 10]
                })
          ]);