multiply property

T multiply

Calculate the multiplication of all numbers in the collection

Implementation

T get multiply {
  if (isEmpty) return T is double ? 0.0 as T : 0 as T;
  return reduce((previousValue, element) => previousValue * element as T);
}