cyclesToDistance property

List<double>? cyclesToDistance

Returns the value of the cyclesToDistance field. Returns null if the field is not defined in the message.

Implementation

List<double>? get cyclesToDistance {
  final field = getField(MonitoringInfoCyclesToDistanceField.ID);
  if (field != null && field.isValid()) {
    return field.getValues();
  } else {
    return null;
  }
}
void cyclesToDistance=(List<double>? value)

Sets the cyclesToDistance field with value. Throws FieldNotDefinedError if the field is not defined in the message.

Implementation

set cyclesToDistance(List<double>? value) {
  final field = getField(MonitoringInfoCyclesToDistanceField.ID);

  if (field != null) {
    if (value == null) {
      field.clear();
    } else {
      final values = value;
      field.setValues(values);
    }
  } else {
    throw FieldNotDefinedError(field!.name);
  }
}