ary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">void operator []=(K key, V value) {
  if (key == null) throw ArgumentError(key);
  &#47;&#47; Splay on the key to move the last node on the search path for
  &#47;&#47; the key to the root of the tree.
  int comp = _splay(key);
  if (comp == 0) {
    _root.value = value;
    return;
  }
  _addNewRoot(_SplayTreeMapNode(key, value), comp);
}</code></pre>
    </section>

  </div