currentDist property

int? currentDist

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

Implementation

int? get currentDist {
  final field = getField(ClimbProCurrentDistField.ID);
  if (field != null && field.isValid()) {
    var subField = field.getValidSubField(fields);
    return field.getValue(subField: subField);
  } else {
    return null;
  }
}
void currentDist=(int? value)

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

Implementation

set currentDist(int? value) {
  final field = getField(ClimbProCurrentDistField.ID);

  if (field != null) {
    if (value == null) {
      field.clear();
    } else {
      var subField = field.getValidSubField(fields);
      field.setValue(0, value, subField);
    }
  } else {
    throw FieldNotDefinedError(field!.name);
  }
}