tree_structs 1.0.8 copy "tree_structs: ^1.0.8" to clipboard
tree_structs: ^1.0.8 copied to clipboard

A dart library for working with tree structures. This package allows you to create, manipulate, and traverse trees.

example/main.dart

import 'package:tree_structs/tree_structs.dart';

void main() {
  final root = GeneralTreeNode<String>('root');
  root.chain[0].addChild('child1');
  root.chain[0].addChild('child2');
  root.chain[1].addChild('grandchild1');
  root.chain[1].addChild('grandchild2');
  root.chain[2].addChild('greatgrandchild1');
  root.chain[2].addChild('greatgrandchild2');

  print(root.chainData);
}
0
likes
160
points
32
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A dart library for working with tree structures. This package allows you to create, manipulate, and traverse trees.

Repository (GitHub)

License

MIT (license)

More

Packages that depend on tree_structs