subtract property
T
get
subtract
Calculate the subtraction of all numbers in the collection
Implementation
T get subtract {
if (isEmpty) return T is double ? 0.0 as T : 0 as T;
return reduce((previousValue, element) => previousValue - element as T);
}