list 

Send to Kindle
home » snippets » dart » list



Snippets

// Filtering
List filtered =
    [1, 2, 3, 4, 5]
   .where((n) => (n % 2) == 0)
   .toList(growable: false);
print("Filtered: $filtered");