printTree function Null safety

void printTree(
  1. dynamic input,
  2. {String prefix = '',
  3. Map? opts}
)

Prints a tree. This is ported from the NPM code (the dependency tree)

Implementation

void printTree(input, {String prefix = '', Map? opts}) {
  Console.write(createTree(input, prefix: prefix, opts: opts));
}