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>>
511
511
return ;
512
512
}
513
513
514
- assert (widget.items!
515
- .where ((DropdownItem <T > item) => item.value == _currentValue)
516
- .length ==
517
- 1 );
518
514
for (int itemIndex = 0 ; itemIndex < widget.items! .length; itemIndex++ ) {
519
515
if (widget.items! [itemIndex].value == _currentValue) {
520
516
_selectedIndex = itemIndex;
@@ -758,7 +754,7 @@ class _DropdownButton2State<T> extends State<DropdownButton2<T>>
758
754
valueListenable: widget.valueListenable ??
759
755
widget.multiValueListenable ??
760
756
ValueNotifier (null ),
761
- builder: (context, multiValue, _ ) {
757
+ builder: (context, _, __ ) {
762
758
_uniqueValueAssert (
763
759
widget.items,
764
760
widget.valueListenable,
You can’t perform that action at this time.
0 commit comments