From 3cae66d4054bf5cc636ad79dbca60407b283a809 Mon Sep 17 00:00:00 2001 From: Hasil T Date: Wed, 30 Aug 2023 18:44:47 +0530 Subject: [PATCH] removed depricated enclosingElement3 --- mobx_codegen/lib/src/type_names.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mobx_codegen/lib/src/type_names.dart b/mobx_codegen/lib/src/type_names.dart index d6c1e0db4..88fce8f23 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); }