length property

  1. @override
int length
override

The number of key/value pairs in the map.

Implementation

@override
int get length {
  var count = 0;

  void visitor(String key, T? value) {
    count += 1;
  }

  visitRoot(visitor);
  return count;
}