void main() {
var numbers = [5, 10, -4, 27, -8, 6, -2];
numbers.where((number) => number == 5 || number == 10).forEach((number) {
print(number);
});
}
Output
5
10
void main() {
var numbers = [5, 10, -4, 27, -8, 6, -2];
numbers.where((number) => number == 5 || number == 10).forEach((number) {
print(number);
});
}
5
10