NumericIterableExt<E extends num> extension
Null safety
Extensions to numeric iterables.
Methods
-
average(
) → double -
Returns an average value of elements in the collection,
double.nan
if empty. -
max(
) → E? -
Returns the largest element or
null
if there are no elements. -
min(
) → E? -
Returns the smallest element or
null
if there are no elements. -
sum(
) → E - Returns the sum of all elements in the collection. [...]