setField method

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

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

@pragma('dart2js:noInline')
void setField(int tagNumber, Object value) {
  _fieldSet._setField(tagNumber, value);
}