treeify 0.0.1-nullsafety.2 treeify: ^0.0.1-nullsafety.2 copied to clipboard
A dart port of the treeify.js for creating trees or directory structures to be printed to console
import 'package:treeify/treeify.dart';
void main() {
final folderStructure = {
'/': {
'Users': {
'foo': {
'Desktop': null,
'Documents': null,
},
'Shared': null,
},
'System': {
'Library': null,
'Volumes': null,
},
}
};
final tree = Treeify.asTree(folderStructure, false);
print(tree);
}