Sets the value associated with property on the proxied JavaScript object.
The type of property must be either String or num.
operator []=(property, value) {
if (property is! String && property is! num) {
throw new ArgumentError("property is not a String or num");
}
JS('', '#[#]=#', _jsObject, property, _convertToJS(value));
}
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-js/JsObject/operator_put.html