Source
Field.inherited(FieldElement element, this._enclosingClass, Library library) : super(element, library) { _isInherited = true; _setModelType(); // Can't set _isInherited to true if this is the defining element, because // that would mean it isn't inherited. assert(enclosingElement != definingEnclosingElement); }