renderFlatList method

List<CNode> renderFlatList(
  1. CNode scaffold
)

Implementation

List<CNode> renderFlatList(final CNode scaffold) {
  final nodes = findAllChildren(scaffold)
    ..sort((a, b) => a.childOrder.compareTo(b.childOrder));
  return nodes
      .toSet()
      .toList(); // Remove duplicates by converting to a Set and back to List
}