how to use reduce for list dart code example Example: dart reduce iterable.reduce((value, element) => value + element);