Check out example codes for "dart reduce". It will help you in understanding the concepts better.

Code Example 1

iterable.reduce((value, element) => value + element);

Learn ReactJs, React Native from akashmittal.com