Creates a new FlatNode helper.
FlatNode({ required this.node, required this.depth, required this.ancestorIsLast, });