sum method

double sum()

Implementation

double sum() {
  if (this == null) return 0;
  var i = 0.0;
  for (final x in this!) {
    i += x;
  }
  return i;
}