Google Dart Only Show Specific DropDown Child Elements

后端 未结 2 834
旧巷少年郎
旧巷少年郎 2021-01-29 11:15

I\'m attempting to get only certain values from a drop-down by hiding a select few. Apparently I cannot go over an array index of 3 or nothing shows up and obviously not below

相关标签:
2条回答
  • 2021-01-29 11:25

    This would only go over the items after the 3rd as sublist would remove the first 3 list elements.

    _predefinedFilterList.sublist(3).forEach((map) => print(map["displayName"]));
    
    0 讨论(0)
  • 2021-01-29 11:42

    What about just clearing the children and then only add these you want to show?

    0 讨论(0)
提交回复
热议问题