hasProperty method

bool hasProperty(
  1. String propertyName
)

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);
}