ChildKey constructor
ChildKey(
- String name
Creates the key for name, parsing its integer form once.
The names of min, max, priority and info return those constants.
Implementation
factory ChildKey(String name) {
switch (name) {
case '.priority':
return priority;
case '.info':
return info;
case '[MIN_NAME]':
return min;
case '[MAX_NAME]':
return max;
}
return ChildKey._(name, tryParseIntKey(name));
}