hasProperty method
Tests whether an object has a given property.
propertyName
(JSStringRef) A JSString containing the property's name.
Implementation
bool hasProperty(String propertyName) {
final JSString jspropName = JSString.fromString(propertyName);
return JSObjectHasProperty(context.ref, _ref, jspropName.ref);
}