allocatedCount property

int get allocatedCount

Number of allocated entries.

Implementation

int get allocatedCount => entries
    .whereType<ReferenceCountedAssociativeEntryImage<KeyType>>()
    .length;