length property

int length

The number of objects in this list.

Implementation

int get length {
  final int length = _m.length;

  /// Optimization: Flushes the map, if free.
  if (length == 0 && _m is! MFlat)
    _m = MFlat.empty<K, V>();

  return length;
}