freeze method Null safety

GeneratedMessage freeze()

Make this message read-only.

Marks this message, and any sub-messages, as read-only.

Implementation

GeneratedMessage freeze() {
  _fieldSet._markReadOnly();
  return this;
}