flutter display the sum of a list code example Example: sum of the list in dart var sum = [1, 2, 3].reduce((a, b) => a + b);