ASCIIArtTree constructor

ASCIIArtTree(
  1. Map tree, {
  2. String pathDelimiter = '/',
  3. String? stripPrefix,
  4. String? stripSuffix,
  5. ASCIIArtTreeStyle style = ASCIIArtTreeStyle.elegant,
  6. bool allowGraphs = false,
})

Implementation

ASCIIArtTree(
  Map tree, {
  this.pathDelimiter = '/',
  this.stripPrefix,
  this.stripSuffix,
  this.style = ASCIIArtTreeStyle.elegant,
  this.allowGraphs = false,
}) {
  _graph = Graph<_ASCIINode>.fromJson(
      tree.map<String, dynamic>((k, v) => MapEntry(k.toString(), v)),
      nodeValueMapper: _jsonToNode);
}