# containsProperty method

1. @override

bool containsProperty(

1. String key

)

Returns whether the given property `key` is defined.

This is useful when optional configuration might exist.

### Example:

    if (resolver.containsProperty('app.debug')) {
      print('Debug mode enabled');
    }

## Implementation

    @override
    bool containsProperty(String key) => _propertyResolver.containsProperty(key);