hasProperty method

bool hasProperty(
  1. String key
)

Checks if a property with the given key exists.

key - The property key to check. Returns true if the property exists, false otherwise.

Implementation

bool hasProperty(String key) {
  return __map.containsKey(key);
}