size method

int? size(
  1. K key
)

Return the size (length of the set) of a named index

Implementation

int? size(K key) => _data[key]?.length;