clear method Null safety

void clear()

Clears all data that was set in this message.

After calling clear, getField will still return default values for unset fields.

Implementation

void clear() => _fieldSet._clear();