hasExtension method

bool hasExtension(
  1. Extension extension
)
inherited

Returns true if a value of extension is present.

Implementation

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