Filter a list
suggest changeDart allows to easily filter a list using where
.
var fruits = ['apples', 'oranges', 'bananas'];
fruits.where((f) => f.startsWith('a')).toList(); //apples
Of course you can use some AND or OR operators in your where clause.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents