hasProperty function Null safety

bool hasProperty(
  1. Object o,
  2. Object name
)

Implementation

bool hasProperty(Object o, Object name) => JS('bool', '# in #', name, o);