File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
packages/dropdown_button2/lib/src Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -511,10 +511,6 @@ class _DropdownButton2State<T> extends State<DropdownButton2<T>>
511511 return ;
512512 }
513513
514- assert (widget.items!
515- .where ((DropdownItem <T > item) => item.value == _currentValue)
516- .length ==
517- 1 );
518514 for (int itemIndex = 0 ; itemIndex < widget.items! .length; itemIndex++ ) {
519515 if (widget.items! [itemIndex].value == _currentValue) {
520516 _selectedIndex = itemIndex;
@@ -758,7 +754,7 @@ class _DropdownButton2State<T> extends State<DropdownButton2<T>>
758754 valueListenable: widget.valueListenable ??
759755 widget.multiValueListenable ??
760756 ValueNotifier (null ),
761- builder: (context, multiValue, _ ) {
757+ builder: (context, _, __ ) {
762758 _uniqueValueAssert (
763759 widget.items,
764760 widget.valueListenable,
You can’t perform that action at this time.
0 commit comments