hasExtension method Null safety

bool hasExtension(
  1. Extension extension
)

Returns true if a value of extension is present.

Implementation

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