has abstract method

bool has(
  1. String key
)

Checks if a given key exists in the configuration.

Returns true if the key exists, otherwise false.

Example:

if (config.has('database.host')) {
  // Use the value
}

Implementation

bool has(String key);