isParentOf method

bool isParentOf(
  1. ConfigurationPropertyName name
)

Whether name is this name plus exactly one element: app is the parent of app.port, not of app.db.port.

Implementation

bool isParentOf(ConfigurationPropertyName name) =>
    name.numberOfElements == numberOfElements + 1 && _isPrefixOf(name);