hasExtension method

bool hasExtension (Extension extension)

Returns true if a value of extension is present.

Implementation

bool hasExtension(Extension extension) =>
    _fieldSet._hasExtensions &&
    _fieldSet._extensions._getFieldOrNull(extension) != null;