sum property
num
get
sum
Calculates the sum of all numeric values in the list.
Example:
final total = list.sum;
Implementation
num get sum => whereNumbers.reduce((num a, num b) => a + b);
Calculates the sum of all numeric values in the list.
Example:
final total = list.sum;
num get sum => whereNumbers.reduce((num a, num b) => a + b);