offsetCal property

List<int>? offsetCal

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

Implementation

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

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

Implementation

set offsetCal(List<int>? value) {
  final field = getField(ThreeDSensorCalibrationOffsetCalField.ID);

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