operator [] method
Returns the value associated with property from the proxied JavaScript
object.
Implementation
Object? operator [](Object property) {
if (property is! String && property is! num) {
throw ArgumentError('property is not a String or num');
}
throw UnsupportedError(
'JavaScript interop is not supported in this runtime.');
}