clearExtension method Null safety

void clearExtension(
  1. Extension extension
)

Clears an extension field and also removes the extension.

Implementation

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