totalWeight method

double totalWeight()

Implementation

double totalWeight() => items.fold(0.0, (sum, e) => sum + e.weight);