Checks if a property with the given key exists.
key - The property key to check. Returns true if the property exists, false otherwise.
key
true
false
bool hasProperty(String key) { return __map.containsKey(key); }