build method

List build()

Implementation

List build() {
  var children = [];
  var node = this;
  do {
    children.add(
        node.right is ColumnState ? node.right.data : node.right['data']);
    node = node.left;
  } while (node.left != null);
  children = children.reversed.toList();
  return children;
}