findProperty method

dynamic findProperty(
  1. dynamic key
)

Attempts to find a property by the given name within this application.

Implementation

dynamic findProperty(key) {
  if (configuration.containsKey(key)) return configuration[key];

  //return parent != null ? parent?.findProperty(key) : null;
  if (parent != null) {
    return parent?.findProperty(key);
  }

  return null;
}