build method

BuiltMap<K, V> build()

Converts to a BuiltMap.

The MapBuilder can be modified again and used to create any number of BuiltMaps.

Implementation

BuiltMap<K, V> build() {
  _mapOwner ??= _BuiltMap<K, V>.withSafeMap(_mapFactory, _map);
  return _mapOwner!;
}