deleteProperty method
void
deleteProperty(
- dynamic property
Removes property from the JavaScript object.
This is the equivalent of the delete operator in JavaScript.
Implementation
void deleteProperty(dynamic 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.');
}