getExtension method Null safety

dynamic getExtension(
  1. Extension extension
)

Returns the value of extension.

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

Implementation

dynamic getExtension(Extension extension) {
  return _fieldSet._ensureExtensions()._getFieldOrDefault(extension);
}