From 2336329baf141ffab4b48559aa505870bc818af8 Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Mon, 21 Oct 2024 14:52:30 -0500 Subject: [PATCH] Resolve pupup menu test TODO (#157251) Flutter no longer supports versions of Dart that will output the non-reified version. --- packages/flutter/test/material/popup_menu_test.dart | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/flutter/test/material/popup_menu_test.dart b/packages/flutter/test/material/popup_menu_test.dart index 6d4ddde2f2..3a1a76d546 100644 --- a/packages/flutter/test/material/popup_menu_test.dart +++ b/packages/flutter/test/material/popup_menu_test.dart @@ -676,12 +676,8 @@ void main() { child: Text('XXX'), ), ); - bool popupMenu(Widget widget) { - final String widgetType = widget.runtimeType.toString(); - // TODO(mraleph): Remove the old case below. - return widgetType == '_PopupMenu' // normal case - || widgetType == '_PopupMenu'; // for old versions of Dart that don't reify method type arguments - } + + bool popupMenu(Widget widget) => widget.runtimeType.toString() == '_PopupMenu'; Future openMenu(TextDirection textDirection, Alignment alignment) async { return TestAsyncUtils.guard(() async {