getExtension method

dynamic getExtension (Extension extension)

Returns the value of extension.

If not set, returns the extension's default value.

Implementation

getExtension(Extension extension) {
  if (_fieldSet._isReadOnly) return extension.readonlyDefault;
  return _fieldSet._ensureExtensions()._getFieldOrDefault(extension);
}