containerTypes function
The node types of catalog that take a children list, most used
first.
Implementation
List<String> containerTypes(Catalog catalog) {
const first = ['column', 'row', 'stack', 'wrap', 'listView', 'gridView'];
final all = [for (final w in catalog.widgets) if (w.children == ChildModel.list) w.type];
return [for (final t in first) if (all.contains(t)) t, for (final t in all) if (!first.contains(t)) t];
}