OccurrenceAddress.fromDotString constructor
- String s
Deserialize from a dot-separated string produced by toDotString.
An empty string returns root.
Implementation
factory OccurrenceAddress.fromDotString(String s) {
if (s.isEmpty) {
return root;
}
return OccurrenceAddress(s.split('.').map(int.parse).toList());
}