diff --git a/mobx_codegen/lib/src/type_names.dart b/mobx_codegen/lib/src/type_names.dart index d6c1e0db..88fce8f2 100644 --- a/mobx_codegen/lib/src/type_names.dart +++ b/mobx_codegen/lib/src/type_names.dart @@ -81,8 +81,7 @@ class LibraryScopedNameFinder { // If we're dealing with a typedef, we let it undergo the standard name // lookup. Otherwise, we special case the function naming. if (type.alias?.element is TypeAliasElement) { - // ignore: deprecated_member_use - typeElement = type.alias!.element.aliasedElement?.enclosingElement3; + typeElement = type.alias!.element.aliasedElement?.enclosingElement; } else { return _getFunctionTypeName(type); }