Dart allows to easily filter a list using where . var fruits = ['apples', 'oranges', 'bananas']; fruits.where((f) => f.startsWith('a')).toList(); //apples.
確定! 回上一頁