clearExtension method

void clearExtension (Extension extension)

Clears an extension field and also removes the extension.

Implementation

void clearExtension(Extension extension) {
  if (_fieldSet._hasExtensions) {
    _fieldSet._extensions._clearFieldAndInfo(extension);
  }
}