DHUIterableNumExtensionsNS extension
Extension on nullable Iterable<num?> providing a total sum calculation.
This extension adds a total getter that computes the sum of all non-null
numeric values in the iterable. If the iterable is null or empty, it
returns 0. Null elements within the iterable are treated as 0 in the
sum.
Properties
- total → num
-
Available on Iterable<
Calculates the total sum of the numbers in the iterable.num?> ?, provided by the DHUIterableNumExtensionsNS extensionno setter