SubstratePathElem constructor
SubstratePathElem(
- String element
Creates a new instance of SubstratePathElem with the provided element.
Implementation
SubstratePathElem(String element) {
if (!isElemValid(element)) {
throw ArgumentException.invalidOperationArguments(
"SubstratePathElem",
name: "element",
reason: "Invalid substrate path element.",
);
}
elem = element.replaceAll("/", "");
isHard = element.startsWith(SubstratePathConst.hardPathPrefix);
}