cycles16 property
int?
cycles16
Returns the value of the cycles16 field. Returns null if the field is not defined in the message.
Implementation
int? get cycles16 {
final field = getField(MonitoringCycles16Field.ID);
if (field != null && field.isValid()) {
var subField = field.getValidSubField(fields);
return field.getValue(subField: subField);
} else {
return null;
}
}
Sets the cycles16 field with value
. Throws FieldNotDefinedError
if the field is not defined in the message.
Implementation
set cycles16(int? value) {
final field = getField(MonitoringCycles16Field.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);
}
}