From 657e0ae26b394d9b96ca8999a44c735e43889879 Mon Sep 17 00:00:00 2001 From: Jogendra Singh Date: Fri, 20 Feb 2026 15:52:24 +0530 Subject: [PATCH] Use DropdownMenuEntry for type safety This replaces implicit dynamic usage with DropdownMenuEntry to satisfy the analyzer and improve type safety. --- .../widgets/stac_dropdown_menu/stac_dropdown_menu_parser.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu_parser.dart index 77b6e2203..ff1a2e447 100644 --- a/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu_parser.dart @@ -57,9 +57,9 @@ class _DropDownMenuWidgetState extends State<_DropDownMenuWidget> { dropdownMenuEntries: model.dropdownMenuEntries ?.map((e) => e.parse(context)) - .whereType() + .whereType>() .toList() ?? - const >[], + const >[], enabled: model.enabled ?? true, width: model.width, menuHeight: model.menuHeight,