reduce method dart code example Example: dart reduce iterable.reduce((value, element) => value + element);