toStr method
Returns the string representation of the path element, including the appropriate prefix
Implementation
String toStr() {
final prefix = isHard
? SubstratePathConst.hardPathPrefix
: SubstratePathConst.softPathPrefix;
return "$prefix$elem";
}