sum static method

int sum(
  1. List<int> list
)

This returns the sum of the provided list

Implementation

static int sum(List<int> list) => list.reduce((a, b) => a + b);