sumByDouble method

double sumByDouble(
  1. double value(
    1. T item
    )
)

Implementation

double sumByDouble(double Function(T item) value) {
  var result = 0.0;

  for (final item in this) {
    result += value(item);
  }

  return result;
}