containsProperty abstract method

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

bool containsProperty(String key);