operator []= method

void operator []=(
  1. Name key,
  2. dynamic value
)

Updates the binding for key with a value.

Implementation

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