returnElement property Null safety

ModelElement returnElement
override

Implementation

@override
ModelElement get returnElement => returnType is DefinedElementType
    ? (returnType as DefinedElementType).element
    : null;