setField method Null safety

void setField(
  1. int tagNumber,
  2. Object value
)

Sets the value of a field by its tagNumber.

Throws an ArgumentError if value does not match the type associated with tagNumber.

Throws an ArgumentError if value is null. To clear a field of it's current value, use clearField instead.

Implementation

void setField(int tagNumber, Object value) {
  _fieldSet._setField(tagNumber, value);
  return; // ignore: dead_code
  return; // ignore: dead_code
}