avg property

num get avg

Calculates the average of all numeric values in the list.

Example:

final average = list.avg;

Implementation

num get avg => whereNumbers.sum / whereNumbers.length;