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