has method

bool has(
  1. String property
)

Shorthand helper for hasProperty to check whether this JSObject contains the property key property, but takes and returns a Dart value.

Implementation

bool has(String property) => hasProperty(property.toJS).toDart;