length property

int get length

Returns the number of entries in the map.

Time complexity: O(1)

Example:

final map = FastMap<String, int>();
print(map.length); // 0
map.set('a', 1);
print(map.length); // 1

Implementation

int get length => _values.length;