W3cubDocs

/Dart 2

operator [] method

V operator [] (Object key)

Implementation

V operator [](Object key) {
  if (!_validKey(key)) return null;
  if (_root != null) {
    int comp = _splay(key);
    if (comp == 0) {
      return _root.value;
    }
  }
  return null;
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-collection/SplayTreeMap/operator_get.html