sum property

Bloom<int> get sum

Returns the sum of all integers in this collection reactively.

Ensures:

  • Returns 0 when the collection is empty.

Implementation

Bloom<int> get sum => computed((via) => via(bloom).sum);