Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart find element in list

List<User> users= [User(id:'1'), User(id:'2'),  User(id:'3'),  User(id:'4')];

var user4 = users.where((element) => user.id == '4').first;
 
PREVIOUS NEXT
Tagged: #dart #find #element #list
ADD COMMENT
Topic
Name
2+3 =