derivePath method
Derive a new Substrate context from the current context using the provided path.
This method creates a child context by applying the path to the current context. Returns the new Substrate context after applying the path.
Implementation
Substrate derivePath(String path) {
final p = SubstratePathParser.parse(path);
Substrate substrateObj = this;
for (final pathElem in p) {
substrateObj = substrateObj.childKey(pathElem);
}
return substrateObj;
}