endPositionLat property

double? endPositionLat

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

Implementation

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

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

Implementation

set endPositionLat(double? value) {
  final field = getField(SegmentLapEndPositionLatField.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);
  }
}