withinConfigKey method

  1. @protected
ConstantReader? withinConfigKey(
  1. String property
)

ConstantReader#read does not return null, so we must safely navigate it

Implementation

@protected
ConstantReader? withinConfigKey(String property) {
  if (reader.peek(configKey) == null) return null;

  final nestedConstant = reader.read(configKey).read(property);
  if (nestedConstant.isNull) return null;

  return nestedConstant;
}