bool hasConfig(String name)

Checks if this node has the specified config.

Source

bool hasConfig(String name) => configs.containsKey(
    name.startsWith(r"$") ? name : '\$' + name
);