uniqueCount property

int get uniqueCount

Returns the number of unique elements in the multiset.

This counts distinct elements regardless of multiplicity.

Implementation

int get uniqueCount => _elements.length;