TreeEntry.fromLsTree constructor

TreeEntry.fromLsTree(
  1. String value
)

Implementation

factory TreeEntry.fromLsTree(String value) {
  // TODO: should catch and re-throw a descriptive error
  final match = _lsTreeRegEx.allMatches(value).single;

  return TreeEntry(match[1]!, match[2]!, match[3]!, match[4]!);
}