hasExtension method

bool hasExtension(
  1. Extension extension
)

Returns true if a value of extension is present.

Implementation

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