operator [] method
- String property
Shorthand helper for getProperty to get the value of the property key
property
of this JSObject, but takes and returns a Dart value.
Implementation
JSAny? operator [](String property) => getProperty(property.toJS);