hasProperty method

bool hasProperty(String property)

Returns true if the JavaScript object contains the specified property either directly or though its prototype chain.

This is the equivalent of the in operator in JavaScript.

Source

bool hasProperty(String property) => _hasProperty(property);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-js/JsObject/hasProperty.html