operator [] method

dynamic operator [](
  1. Name key
)

Return the binding for key.

Implementation

dynamic operator [](Name key) {
  if (_bindings.containsKey(key)) {
    return _bindings[key];
  } else if (_owner != null) {
    return _owner![key];
  } else {
    _invalidBinding(key);
    return null;
  }
}