operator []= method

void operator []= (dynamic property dynamic value)

Implementation

void operator []=(property, value) {
  if (property is! String && property is! num) {
    throw ArgumentError("property is not a String or num");
  }
  JS('', '#[#] = #', _jsObject, property, _convertToJS(value));
}